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

Side by Side Diff: headless/lib/browser/headless_content_browser_client.h

Issue 1782053004: Change how the quota system computes the total poolsize for temporary storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
6 #define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 6 #define HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 9
10 namespace headless { 10 namespace headless {
11 11
12 class HeadlessBrowserImpl; 12 class HeadlessBrowserImpl;
13 class HeadlessBrowserMainParts; 13 class HeadlessBrowserMainParts;
14 class HeadlessDevToolsManagerDelegate; 14 class HeadlessDevToolsManagerDelegate;
15 15
16 class HeadlessContentBrowserClient : public content::ContentBrowserClient { 16 class HeadlessContentBrowserClient : public content::ContentBrowserClient {
17 public: 17 public:
18 explicit HeadlessContentBrowserClient(HeadlessBrowserImpl* browser); 18 explicit HeadlessContentBrowserClient(HeadlessBrowserImpl* browser);
19 ~HeadlessContentBrowserClient() override; 19 ~HeadlessContentBrowserClient() override;
20 20
21 // content::ContentBrowserClient implementation: 21 // content::ContentBrowserClient implementation:
22 content::BrowserMainParts* CreateBrowserMainParts( 22 content::BrowserMainParts* CreateBrowserMainParts(
23 const content::MainFunctionParams&) override; 23 const content::MainFunctionParams&) override;
24 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, 24 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host,
25 content::WebPreferences* prefs) override; 25 content::WebPreferences* prefs) override;
26 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; 26 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override;
27 std::unique_ptr<base::Value> GetServiceManifestOverlay( 27 std::unique_ptr<base::Value> GetServiceManifestOverlay(
28 const std::string& name) override; 28 const std::string& name) override;
29 void GetQuotaSettings(
30 content::BrowserContext* context,
31 const base::FilePath& partition_path,
32 bool is_incognito,
33 const storage::OptionalQuotaSettingsCallback& callback) override;
29 34
30 private: 35 private:
31 HeadlessBrowserImpl* browser_; // Not owned. 36 HeadlessBrowserImpl* browser_; // Not owned.
32 37
33 DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient); 38 DISALLOW_COPY_AND_ASSIGN(HeadlessContentBrowserClient);
34 }; 39 };
35 40
36 } // namespace headless 41 } // namespace headless
37 42
38 #endif // HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_ 43 #endif // HEADLESS_LIB_BROWSER_HEADLESS_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698