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

Side by Side Diff: content/public/test/fake_download_item.h

Issue 2674973003: Adding a DownloadRestrictions group policy. (Closed)
Patch Set: Missed one... :-( 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_ 5 #ifndef CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
6 #define CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_ 6 #define CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 const override; 129 const override;
130 bool CanShowInFolder() override; 130 bool CanShowInFolder() override;
131 bool CanOpenDownload() override; 131 bool CanOpenDownload() override;
132 bool ShouldOpenFileBasedOnExtension() override; 132 bool ShouldOpenFileBasedOnExtension() override;
133 bool GetOpenWhenComplete() const override; 133 bool GetOpenWhenComplete() const override;
134 bool GetAutoOpened() override; 134 bool GetAutoOpened() override;
135 bool GetOpened() const override; 135 bool GetOpened() const override;
136 bool IsTransient() const override; 136 bool IsTransient() const override;
137 BrowserContext* GetBrowserContext() const override; 137 BrowserContext* GetBrowserContext() const override;
138 WebContents* GetWebContents() const override; 138 WebContents* GetWebContents() const override;
139 void OnContentCheckCompleted(DownloadDangerType danger_type) override; 139 void OnContentCheckCompleted(DownloadDangerType danger_type,
140 DownloadInterruptReason reason) override;
140 void SetOpenWhenComplete(bool open) override; 141 void SetOpenWhenComplete(bool open) override;
141 void SetOpened(bool opened) override; 142 void SetOpened(bool opened) override;
142 void SetDisplayName(const base::FilePath& name) override; 143 void SetDisplayName(const base::FilePath& name) override;
143 std::string DebugString(bool verbose) const override; 144 std::string DebugString(bool verbose) const override;
144 145
145 private: 146 private:
146 base::ObserverList<Observer> observers_; 147 base::ObserverList<Observer> observers_;
147 uint32_t id_ = 0; 148 uint32_t id_ = 0;
148 std::string guid_; 149 std::string guid_;
149 GURL url_; 150 GURL url_;
(...skipping 18 matching lines...) Expand all
168 std::string dummy_string; 169 std::string dummy_string;
169 GURL dummy_url; 170 GURL dummy_url;
170 base::FilePath dummy_file_path; 171 base::FilePath dummy_file_path;
171 172
172 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem); 173 DISALLOW_COPY_AND_ASSIGN(FakeDownloadItem);
173 }; 174 };
174 175
175 } // namespace content 176 } // namespace content
176 177
177 #endif // CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_ 178 #endif // CONTENT_PUBLIC_TEST_FAKE_DOWNLOAD_ITEM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698