Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: content/browser/download/download_item_impl.h

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Updated policy description wording. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 5 #ifndef CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 6 #define CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector>
12 13
13 #include "base/callback_forward.h" 14 #include "base/callback_forward.h"
14 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
17 #include "base/observer_list.h" 18 #include "base/observer_list.h"
18 #include "base/time/time.h" 19 #include "base/time/time.h"
19 #include "content/browser/download/download_destination_observer.h" 20 #include "content/browser/download/download_destination_observer.h"
20 #include "content/browser/download/download_net_log_parameters.h" 21 #include "content/browser/download/download_net_log_parameters.h"
21 #include "content/browser/download/download_request_handle.h" 22 #include "content/browser/download/download_request_handle.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 bool CanShowInFolder() override; 272 bool CanShowInFolder() override;
272 bool CanOpenDownload() override; 273 bool CanOpenDownload() override;
273 bool ShouldOpenFileBasedOnExtension() override; 274 bool ShouldOpenFileBasedOnExtension() override;
274 bool GetOpenWhenComplete() const override; 275 bool GetOpenWhenComplete() const override;
275 bool GetAutoOpened() override; 276 bool GetAutoOpened() override;
276 bool GetOpened() const override; 277 bool GetOpened() const override;
277 base::Time GetLastAccessTime() const override; 278 base::Time GetLastAccessTime() const override;
278 bool IsTransient() const override; 279 bool IsTransient() const override;
279 BrowserContext* GetBrowserContext() const override; 280 BrowserContext* GetBrowserContext() const override;
280 WebContents* GetWebContents() const override; 281 WebContents* GetWebContents() const override;
281 void OnContentCheckCompleted(DownloadDangerType danger_type) override; 282 void OnContentCheckCompleted(DownloadDangerType danger_type,
283 DownloadInterruptReason reason) override;
282 void SetOpenWhenComplete(bool open) override; 284 void SetOpenWhenComplete(bool open) override;
283 void SetOpened(bool opened) override; 285 void SetOpened(bool opened) override;
284 void SetLastAccessTime(base::Time last_access_time) override; 286 void SetLastAccessTime(base::Time last_access_time) override;
285 void SetDisplayName(const base::FilePath& name) override; 287 void SetDisplayName(const base::FilePath& name) override;
286 std::string DebugString(bool verbose) const override; 288 std::string DebugString(bool verbose) const override;
287 289
288 // All remaining public interfaces virtual to allow for DownloadItemImpl 290 // All remaining public interfaces virtual to allow for DownloadItemImpl
289 // mocks. 291 // mocks.
290 292
291 // Determines the resume mode for an interrupted download. Requires 293 // Determines the resume mode for an interrupted download. Requires
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 int64_t received_bytes_at_length_mismatch = -1; 755 int64_t received_bytes_at_length_mismatch = -1;
754 756
755 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_; 757 base::WeakPtrFactory<DownloadItemImpl> weak_ptr_factory_;
756 758
757 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl); 759 DISALLOW_COPY_AND_ASSIGN(DownloadItemImpl);
758 }; 760 };
759 761
760 } // namespace content 762 } // namespace content
761 763
762 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_ 764 #endif // CONTENT_BROWSER_DOWNLOAD_DOWNLOAD_ITEM_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698