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: chrome/browser/chrome_content_browser_client.h

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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 | « no previous file | 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 <string> 9 #include <string>
10 10
(...skipping 28 matching lines...) Expand all
39 virtual std::string GetCanonicalEncodingNameByAliasName( 39 virtual std::string GetCanonicalEncodingNameByAliasName(
40 const std::string& alias_name) OVERRIDE; 40 const std::string& alias_name) OVERRIDE;
41 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 41 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
42 int child_process_id) OVERRIDE; 42 int child_process_id) OVERRIDE;
43 virtual std::string GetApplicationLocale() OVERRIDE; 43 virtual std::string GetApplicationLocale() OVERRIDE;
44 virtual std::string GetAcceptLangs( 44 virtual std::string GetAcceptLangs(
45 content::BrowserContext* context) OVERRIDE; 45 content::BrowserContext* context) OVERRIDE;
46 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; 46 virtual SkBitmap* GetDefaultFavicon() OVERRIDE;
47 virtual bool AllowAppCache(const GURL& manifest_url, 47 virtual bool AllowAppCache(const GURL& manifest_url,
48 const GURL& first_party, 48 const GURL& first_party,
49 const content::ResourceContext& context) OVERRIDE; 49 content::ResourceContext* context) OVERRIDE;
50 virtual bool AllowGetCookie(const GURL& url, 50 virtual bool AllowGetCookie(const GURL& url,
51 const GURL& first_party, 51 const GURL& first_party,
52 const net::CookieList& cookie_list, 52 const net::CookieList& cookie_list,
53 const content::ResourceContext& context, 53 content::ResourceContext* context,
54 int render_process_id, 54 int render_process_id,
55 int render_view_id) OVERRIDE; 55 int render_view_id) OVERRIDE;
56 virtual bool AllowSetCookie(const GURL& url, 56 virtual bool AllowSetCookie(const GURL& url,
57 const GURL& first_party, 57 const GURL& first_party,
58 const std::string& cookie_line, 58 const std::string& cookie_line,
59 const content::ResourceContext& context, 59 content::ResourceContext* context,
60 int render_process_id, 60 int render_process_id,
61 int render_view_id, 61 int render_view_id,
62 net::CookieOptions* options) OVERRIDE; 62 net::CookieOptions* options) OVERRIDE;
63 virtual bool AllowSaveLocalState( 63 virtual bool AllowSaveLocalState(content::ResourceContext* context) OVERRIDE;
64 const content::ResourceContext& context) OVERRIDE;
65 virtual bool AllowWorkerDatabase( 64 virtual bool AllowWorkerDatabase(
66 const GURL& url, 65 const GURL& url,
67 const string16& name, 66 const string16& name,
68 const string16& display_name, 67 const string16& display_name,
69 unsigned long estimated_size, 68 unsigned long estimated_size,
70 const content::ResourceContext& context, 69 content::ResourceContext* context,
71 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; 70 const std::vector<std::pair<int, int> >& render_views) OVERRIDE;
72 virtual bool AllowWorkerFileSystem( 71 virtual bool AllowWorkerFileSystem(
73 const GURL& url, 72 const GURL& url,
74 const content::ResourceContext& context, 73 content::ResourceContext* context,
75 const std::vector<std::pair<int, int> >& render_views) OVERRIDE; 74 const std::vector<std::pair<int, int> >& render_views) OVERRIDE;
76 virtual net::URLRequestContext* OverrideRequestContextForURL( 75 virtual net::URLRequestContext* OverrideRequestContextForURL(
77 const GURL& url, const content::ResourceContext& context) OVERRIDE; 76 const GURL& url, content::ResourceContext* context) OVERRIDE;
78 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE; 77 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE;
79 virtual void OpenItem(const FilePath& path) OVERRIDE; 78 virtual void OpenItem(const FilePath& path) OVERRIDE;
80 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE; 79 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE;
81 virtual void AllowCertificateError( 80 virtual void AllowCertificateError(
82 SSLCertErrorHandler* handler, 81 SSLCertErrorHandler* handler,
83 bool overridable, 82 bool overridable,
84 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback) 83 const base::Callback<void(SSLCertErrorHandler*, bool)>& callback)
85 OVERRIDE; 84 OVERRIDE;
86 virtual void SelectClientCertificate( 85 virtual void SelectClientCertificate(
87 int render_process_id, 86 int render_process_id,
88 int render_view_id, 87 int render_view_id,
89 SSLClientAuthHandler* handler) OVERRIDE; 88 SSLClientAuthHandler* handler) OVERRIDE;
90 virtual void AddNewCertificate( 89 virtual void AddNewCertificate(
91 net::URLRequest* request, 90 net::URLRequest* request,
92 net::X509Certificate* cert, 91 net::X509Certificate* cert,
93 int render_process_id, 92 int render_process_id,
94 int render_view_id) OVERRIDE; 93 int render_view_id) OVERRIDE;
95 virtual void RequestDesktopNotificationPermission( 94 virtual void RequestDesktopNotificationPermission(
96 const GURL& source_origin, 95 const GURL& source_origin,
97 int callback_context, 96 int callback_context,
98 int render_process_id, 97 int render_process_id,
99 int render_view_id) OVERRIDE; 98 int render_view_id) OVERRIDE;
100 virtual WebKit::WebNotificationPresenter::Permission 99 virtual WebKit::WebNotificationPresenter::Permission
101 CheckDesktopNotificationPermission( 100 CheckDesktopNotificationPermission(
102 const GURL& source_origin, 101 const GURL& source_origin,
103 const content::ResourceContext& context, 102 content::ResourceContext* context,
104 int render_process_id) OVERRIDE; 103 int render_process_id) OVERRIDE;
105 virtual void ShowDesktopNotification( 104 virtual void ShowDesktopNotification(
106 const content::ShowDesktopNotificationHostMsgParams& params, 105 const content::ShowDesktopNotificationHostMsgParams& params,
107 int render_process_id, 106 int render_process_id,
108 int render_view_id, 107 int render_view_id,
109 bool worker) OVERRIDE; 108 bool worker) OVERRIDE;
110 virtual void CancelDesktopNotification( 109 virtual void CancelDesktopNotification(
111 int render_process_id, 110 int render_process_id,
112 int render_view_id, 111 int render_view_id,
113 int notification_id) OVERRIDE; 112 int notification_id) OVERRIDE;
114 virtual bool CanCreateWindow( 113 virtual bool CanCreateWindow(
115 const GURL& source_origin, 114 const GURL& source_origin,
116 WindowContainerType container_type, 115 WindowContainerType container_type,
117 const content::ResourceContext& context, 116 content::ResourceContext* context,
118 int render_process_id) OVERRIDE; 117 int render_process_id) OVERRIDE;
119 virtual std::string GetWorkerProcessTitle( 118 virtual std::string GetWorkerProcessTitle(
120 const GURL& url, const content::ResourceContext& context) OVERRIDE; 119 const GURL& url, content::ResourceContext* context) OVERRIDE;
121 virtual void ResourceDispatcherHostCreated() OVERRIDE; 120 virtual void ResourceDispatcherHostCreated() OVERRIDE;
122 virtual ui::Clipboard* GetClipboard() OVERRIDE; 121 virtual ui::Clipboard* GetClipboard() OVERRIDE;
123 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE; 122 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE;
124 virtual net::NetLog* GetNetLog() OVERRIDE; 123 virtual net::NetLog* GetNetLog() OVERRIDE;
125 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE; 124 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE;
126 virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE; 125 virtual content::AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
127 virtual bool IsFastShutdownPossible() OVERRIDE; 126 virtual bool IsFastShutdownPossible() OVERRIDE;
128 virtual void OverrideWebkitPrefs(RenderViewHost* rvh, 127 virtual void OverrideWebkitPrefs(RenderViewHost* rvh,
129 WebPreferences* prefs) OVERRIDE; 128 WebPreferences* prefs) OVERRIDE;
130 virtual void UpdateInspectorSetting(RenderViewHost* rvh, 129 virtual void UpdateInspectorSetting(RenderViewHost* rvh,
(...skipping 15 matching lines...) Expand all
146 #if defined(USE_NSS) 145 #if defined(USE_NSS)
147 virtual 146 virtual
148 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 147 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
149 const GURL& url) OVERRIDE; 148 const GURL& url) OVERRIDE;
150 #endif 149 #endif
151 }; 150 };
152 151
153 } // namespace chrome 152 } // namespace chrome
154 153
155 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 154 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698