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

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

Issue 11234032: Webview tag creation should be using storage partitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing remaining nits. Created 8 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 | Annotate | Revision Log
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 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 25 matching lines...) Expand all
36 virtual ~ChromeContentBrowserClient(); 36 virtual ~ChromeContentBrowserClient();
37 37
38 static void RegisterUserPrefs(PrefService* prefs); 38 static void RegisterUserPrefs(PrefService* prefs);
39 39
40 virtual content::BrowserMainParts* CreateBrowserMainParts( 40 virtual content::BrowserMainParts* CreateBrowserMainParts(
41 const content::MainFunctionParams& parameters) OVERRIDE; 41 const content::MainFunctionParams& parameters) OVERRIDE;
42 virtual content::WebContentsView* OverrideCreateWebContentsView( 42 virtual content::WebContentsView* OverrideCreateWebContentsView(
43 content::WebContents* web_contents, 43 content::WebContents* web_contents,
44 content::RenderViewHostDelegateView** render_view_host_delegate_view) 44 content::RenderViewHostDelegateView** render_view_host_delegate_view)
45 OVERRIDE; 45 OVERRIDE;
46 virtual std::string GetStoragePartitionIdForChildProcess(
47 content::BrowserContext* browser_context,
48 int child_process_id) OVERRIDE;
49 virtual std::string GetStoragePartitionIdForSite( 46 virtual std::string GetStoragePartitionIdForSite(
50 content::BrowserContext* browser_context, 47 content::BrowserContext* browser_context,
51 const GURL& site) OVERRIDE; 48 const GURL& site) OVERRIDE;
52 virtual bool IsValidStoragePartitionId( 49 virtual bool IsValidStoragePartitionId(
53 content::BrowserContext* browser_context, 50 content::BrowserContext* browser_context,
54 const std::string& partition_id) OVERRIDE; 51 const std::string& partition_id) OVERRIDE;
52 virtual void GetStoragePartitionConfigForSite(
53 content::BrowserContext* browser_context,
54 const GURL& site,
55 std::string* partition_domain,
56 std::string* partition_name,
57 bool* in_memory) OVERRIDE;
55 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate( 58 virtual content::WebContentsViewDelegate* GetWebContentsViewDelegate(
56 content::WebContents* web_contents) OVERRIDE; 59 content::WebContents* web_contents) OVERRIDE;
57 virtual void RenderViewHostCreated( 60 virtual void RenderViewHostCreated(
58 content::RenderViewHost* render_view_host) OVERRIDE; 61 content::RenderViewHost* render_view_host) OVERRIDE;
59 virtual void RenderProcessHostCreated( 62 virtual void RenderProcessHostCreated(
60 content::RenderProcessHost* host) OVERRIDE; 63 content::RenderProcessHost* host) OVERRIDE;
61 virtual void BrowserChildProcessHostCreated( 64 virtual void BrowserChildProcessHostCreated(
62 content::BrowserChildProcessHost* host) OVERRIDE; 65 content::BrowserChildProcessHost* host) OVERRIDE;
63 virtual content::WebUIControllerFactory* GetWebUIControllerFactory() OVERRIDE; 66 virtual content::WebUIControllerFactory* GetWebUIControllerFactory() OVERRIDE;
64 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, 67 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 #endif 231 #endif
229 232
230 // Notification that the application locale has changed. This allows us to 233 // Notification that the application locale has changed. This allows us to
231 // update our I/O thread cache of this value. 234 // update our I/O thread cache of this value.
232 void SetApplicationLocale(const std::string& locale); 235 void SetApplicationLocale(const std::string& locale);
233 236
234 private: 237 private:
235 // Sets io_thread_application_locale_ to the given value. 238 // Sets io_thread_application_locale_ to the given value.
236 void SetApplicationLocaleOnIOThread(const std::string& locale); 239 void SetApplicationLocaleOnIOThread(const std::string& locale);
237 240
238 // Helper function for getting the storage partition id from an Extension
239 // object.
240 std::string GetStoragePartitionIdForExtension(
241 content::BrowserContext* browser_context,
242 const extensions::Extension* extension);
243
244 #if defined(OS_ANDROID) 241 #if defined(OS_ANDROID)
245 void InitCrashDumpManager(); 242 void InitCrashDumpManager();
246 243
247 scoped_ptr<CrashDumpManager> crash_dump_manager_; 244 scoped_ptr<CrashDumpManager> crash_dump_manager_;
248 #endif 245 #endif
249 246
250 // Set of origins that can use TCP/UDP private APIs from NaCl. 247 // Set of origins that can use TCP/UDP private APIs from NaCl.
251 std::set<std::string> allowed_socket_origins_; 248 std::set<std::string> allowed_socket_origins_;
252 249
253 // Cached version of the locale so we can return the locale on the I/O 250 // Cached version of the locale so we can return the locale on the I/O
254 // thread. 251 // thread.
255 std::string io_thread_application_locale_; 252 std::string io_thread_application_locale_;
256 253
257 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 254 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
258 }; 255 };
259 256
260 } // namespace chrome 257 } // namespace chrome
261 258
262 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 259 #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') | chrome/browser/chrome_content_browser_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698