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

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 9566035: Move QuotaPermissionContext to content/public/browser and put it in the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "content/public/browser/content_browser_client.h" 13 #include "content/public/browser/content_browser_client.h"
14 14
15 namespace content {
16 class QuotaPermissionContext;
17 }
18
15 namespace chrome { 19 namespace chrome {
16 20
17 class ChromeContentBrowserClient : public content::ContentBrowserClient { 21 class ChromeContentBrowserClient : public content::ContentBrowserClient {
18 public: 22 public:
19 ChromeContentBrowserClient(); 23 ChromeContentBrowserClient();
20 virtual ~ChromeContentBrowserClient(); 24 virtual ~ChromeContentBrowserClient();
21 25
22 virtual content::BrowserMainParts* CreateBrowserMainParts( 26 virtual content::BrowserMainParts* CreateBrowserMainParts(
23 const content::MainFunctionParams& parameters) OVERRIDE; 27 const content::MainFunctionParams& parameters) OVERRIDE;
24 virtual content::WebContentsView* CreateWebContentsView( 28 virtual content::WebContentsView* CreateWebContentsView(
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const string16& display_name, 77 const string16& display_name,
74 unsigned long estimated_size, 78 unsigned long estimated_size,
75 content::ResourceContext* context, 79 content::ResourceContext* context,
76 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; 80 const std::vector<std::pair<int, int> >& render_views) OVERRIDE;
77 virtual bool AllowWorkerFileSystem( 81 virtual bool AllowWorkerFileSystem(
78 const GURL& url, 82 const GURL& url,
79 content::ResourceContext* context, 83 content::ResourceContext* context,
80 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; 84 const std::vector<std::pair<int, int> >& render_views) OVERRIDE;
81 virtual net::URLRequestContext* OverrideRequestContextForURL( 85 virtual net::URLRequestContext* OverrideRequestContextForURL(
82 const GURL& url, content::ResourceContext* context) OVERRIDE; 86 const GURL& url, content::ResourceContext* context) OVERRIDE;
83 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; 87 virtual content::QuotaPermissionContext*
88 CreateQuotaPermissionContext() OVERRIDE;
84 virtual void OpenItem(const FilePath& path) OVERRIDE; 89 virtual void OpenItem(const FilePath& path) OVERRIDE;
85 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; 90 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE;
86 virtual void AllowCertificateError( 91 virtual void AllowCertificateError(
87 int render_process_id, 92 int render_process_id,
88 int render_view_id, 93 int render_view_id,
89 int cert_error, 94 int cert_error,
90 const net::SSLInfo& ssl_info, 95 const net::SSLInfo& ssl_info,
91 const GURL& request_url, 96 const GURL& request_url,
92 bool overridable, 97 bool overridable,
93 const base::Callback<void(bool)>& callback, 98 const base::Callback<void(bool)>& callback,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 private: 172 private:
168 // Set of origins that can use TCP/UDP private APIs from NaCl. 173 // Set of origins that can use TCP/UDP private APIs from NaCl.
169 std::set<std::string> allowed_socket_origins_; 174 std::set<std::string> allowed_socket_origins_;
170 175
171 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 176 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
172 }; 177 };
173 178
174 } // namespace chrome 179 } // namespace chrome
175 180
176 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 181 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/DEPS ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698