HomeSort by relevance Sort by last modified time
    Searched refs:DownloadRequestLimiter (Results 1 - 24 of 24) sorted by null

  /external/chromium/chrome/browser/download/
download_request_limiter.cc 19 DownloadRequestLimiter::TabDownloadState::TabDownloadState(
20 DownloadRequestLimiter* host,
25 status_(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD),
39 DownloadRequestLimiter::TabDownloadState::~TabDownloadState() {
47 void DownloadRequestLimiter::TabDownloadState::OnUserGesture() {
53 if (status_ != DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS &&
54 status_ != DownloadRequestLimiter::DOWNLOADS_NOT_ALLOWED) {
62 void DownloadRequestLimiter::TabDownloadState::PromptUserForDownload(
64 DownloadRequestLimiter::Callback* callback) {
70 if (DownloadRequestLimiter::delegate_)
    [all...]
download_request_infobar_delegate.h 23 DownloadRequestLimiter::TabDownloadState* host);
25 void set_host(DownloadRequestLimiter::TabDownloadState* host) {
39 DownloadRequestLimiter::TabDownloadState* host_;
download_request_limiter.h 21 // DownloadRequestLimiter is responsible for determining whether a download
23 // multiple files without user interaction. DownloadRequestLimiter is invoked
43 class DownloadRequestLimiter
44 : public base::RefCountedThreadSafe<DownloadRequestLimiter> {
70 // DownloadRequestLimiter::Remove) as necessary.
79 TabDownloadState(DownloadRequestLimiter* host,
85 void set_download_status(DownloadRequestLimiter::DownloadStatus status) {
88 DownloadRequestLimiter::DownloadStatus download_status() const {
101 // may result in invoking Remove on DownloadRequestLimiter.
108 DownloadRequestLimiter::Callback* callback)
    [all...]
download_request_limiter_unittest.cc 14 public DownloadRequestLimiter::Callback {
25 download_request_limiter_ = new DownloadRequestLimiter();
27 DownloadRequestLimiter::SetTestingDelegate(test_delegate_.get());
31 DownloadRequestLimiter::SetTestingDelegate(NULL);
56 : public DownloadRequestLimiter::TestingDelegate {
71 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
90 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD,
96 ASSERT_EQ(DownloadRequestLimiter::PROMPT_BEFORE_DOWNLOAD,
111 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS,
123 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS
    [all...]
download_request_infobar_delegate.cc 15 DownloadRequestLimiter::TabDownloadState* host)
download_request_infobar_delegate_unittest.cc 11 class MockTabDownloadState : public DownloadRequestLimiter::TabDownloadState {
16 // DownloadRequestLimiter::TabDownloadState
  /external/chromium_org/chrome/browser/download/
download_request_limiter.cc 33 DownloadRequestLimiter::TabDownloadState::TabDownloadState(
34 DownloadRequestLimiter* host,
40 status_(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD),
54 DownloadRequestLimiter::TabDownloadState::~TabDownloadState() {
62 void DownloadRequestLimiter::TabDownloadState::AboutToNavigateRenderView(
68 // are expecting DownloadRequestLimiter to behave as if they had just
79 // the URL into a new tab, which will make a new DownloadRequestLimiter.
88 void DownloadRequestLimiter::TabDownloadState::DidGetUserGesture() {
96 if ((status_ != DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS) &&
98 (status_ != DownloadRequestLimiter::DOWNLOADS_NOT_ALLOWED)))
    [all...]
download_request_limiter.h 29 // DownloadRequestLimiter is responsible for determining whether a download
31 // multiple files without user interaction. DownloadRequestLimiter is invoked
51 class DownloadRequestLimiter
52 : public base::RefCountedThreadSafe<DownloadRequestLimiter> {
72 // DownloadRequestLimiter::Remove) as necessary.
82 TabDownloadState(DownloadRequestLimiter* host,
88 void set_download_status(DownloadRequestLimiter::DownloadStatus status) {
91 DownloadRequestLimiter::DownloadStatus download_status() const {
112 // may result in invoking Remove on DownloadRequestLimiter.
121 const DownloadRequestLimiter::Callback& callback)
    [all...]
download_request_limiter_unittest.cc 33 download_request_limiter_ = new DownloadRequestLimiter();
39 DownloadRequestLimiter::SetContentSettingsForTesting(
45 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) {
89 DownloadRequestLimiter::TabDownloadState* state =
96 DownloadRequestLimiter::TabDownloadState* state =
131 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
155 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ONE_DOWNLOAD,
160 ASSERT_EQ(DownloadRequestLimiter::PROMPT_BEFORE_DOWNLOAD,
171 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS,
179 ASSERT_EQ(DownloadRequestLimiter::ALLOW_ALL_DOWNLOADS
    [all...]
download_request_infobar_delegate.h 23 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host)>
31 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host);
35 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) {
47 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host);
57 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host_;
download_resource_throttle.h 16 // and asks the DownloadRequestLimiter if the download should be allowed. The
17 // DownloadRequestLimiter notifies us asynchronously as to whether the download
25 DownloadResourceThrottle(DownloadRequestLimiter* limiter,
43 // Set to true when we are querying the DownloadRequestLimiter.
download_request_infobar_delegate.cc 24 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host) {
52 base::WeakPtr<DownloadRequestLimiter::TabDownloadState> host)
download_request_infobar_delegate_unittest.cc 13 class MockTabDownloadState : public DownloadRequestLimiter::TabDownloadState {
18 // DownloadRequestLimiter::TabDownloadState
30 base::WeakPtrFactory<DownloadRequestLimiter::TabDownloadState> factory_;
download_resource_throttle.cc 12 DownloadRequestLimiter* limiter,
52 // Defer the download until we have the DownloadRequestLimiter result.
download_browsertest.cc     [all...]
  /external/chromium/chrome/browser/
browser_process.cc 15 DownloadRequestLimiter* BrowserProcess::download_request_limiter() {
browser_process.h 29 class DownloadRequestLimiter;
178 DownloadRequestLimiter* download_request_limiter();
  /external/chromium_org/chrome/browser/
browser_process.h 26 class DownloadRequestLimiter;
173 virtual DownloadRequestLimiter* download_request_limiter() = 0;
browser_process_impl.h 111 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE;
254 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
browser_process_impl.cc 726 DownloadRequestLimiter* BrowserProcessImpl::download_request_limiter() {
729 download_request_limiter_ = new DownloadRequestLimiter();
    [all...]
  /external/chromium_org/chrome/browser/renderer_host/
chrome_resource_dispatcher_host_delegate.h 15 class DownloadRequestLimiter;
129 scoped_refptr<DownloadRequestLimiter> download_request_limiter_;
  /external/chromium/chrome/browser/renderer_host/
download_throttling_resource_handler.h 24 // download and asks the DownloadRequestLimiter if the download should be
25 // allowed. The DownloadRequestLimiter notifies us asynchronously as to whether
32 public DownloadRequestLimiter::Callback {
58 // DownloadRequestLimiter::Callback implementation:
  /external/chromium_org/chrome/test/base/
testing_browser_process.h 103 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE;
testing_browser_process.cc 317 DownloadRequestLimiter* TestingBrowserProcess::download_request_limiter() {

Completed in 187 milliseconds