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

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

Issue 591063003: Split ChromeContentBrowserClient into smaller parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 (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 13 matching lines...) Expand all
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class QuotaPermissionContext; 27 class QuotaPermissionContext;
28 } 28 }
29 29
30 namespace extensions { 30 namespace extensions {
31 class BrowserPermissionsPolicyDelegate; 31 class BrowserPermissionsPolicyDelegate;
32 } 32 }
33 33
34 namespace plugins {
35 class ChromeContentBrowserClientPluginsPart;
36 }
37
34 namespace prerender { 38 namespace prerender {
35 class PrerenderTracker; 39 class PrerenderTracker;
36 } 40 }
37 41
38 namespace user_prefs { 42 namespace user_prefs {
39 class PrefRegistrySyncable; 43 class PrefRegistrySyncable;
40 } 44 }
41 45
42 namespace chrome { 46 namespace chrome {
43 47
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 bool allow); 323 bool allow);
320 324
321 static void RequestFileSystemPermissionOnUIThread( 325 static void RequestFileSystemPermissionOnUIThread(
322 int render_process_id, 326 int render_process_id,
323 int render_frame_id, 327 int render_frame_id,
324 const GURL& url, 328 const GURL& url,
325 bool allowed_by_default, 329 bool allowed_by_default,
326 const base::Callback<void(bool)>& callback); 330 const base::Callback<void(bool)>& callback);
327 #endif 331 #endif
328 332
329 #if defined(ENABLE_PLUGINS)
330 // Set of origins that can use TCP/UDP private APIs from NaCl.
331 std::set<std::string> allowed_socket_origins_;
332 // Set of origins that can get a handle for FileIO from NaCl.
333 std::set<std::string> allowed_file_handle_origins_;
334 // Set of origins that can use "dev chanel" APIs from NaCl, even on stable
335 // versions of Chrome.
336 std::set<std::string> allowed_dev_channel_origins_;
337 #endif
338
339 // The prerender tracker used to determine whether a render process is used 333 // The prerender tracker used to determine whether a render process is used
340 // for prerendering and an override cookie store must be provided. 334 // for prerendering and an override cookie store must be provided.
341 // This needs to be kept as a member rather than just looked up from 335 // This needs to be kept as a member rather than just looked up from
342 // the profile due to initialization ordering, as well as due to threading. 336 // the profile due to initialization ordering, as well as due to threading.
343 // It is initialized on the UI thread when the ResoureDispatcherHost is 337 // It is initialized on the UI thread when the ResoureDispatcherHost is
344 // created. It is used only the IO thread. 338 // created. It is used only the IO thread.
345 prerender::PrerenderTracker* prerender_tracker_; 339 prerender::PrerenderTracker* prerender_tracker_;
346 340
347 // Vector of additional ChromeContentBrowserClientParts. 341 // Vector of additional ChromeContentBrowserClientParts.
348 // Parts are deleted in the reverse order they are added. 342 // Parts are deleted in the reverse order they are added.
349 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 343 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
350 344
345 plugins::ChromeContentBrowserClientPluginsPart* plugin_parts_;
Lei Zhang 2014/11/18 03:14:46 ChromeContentBrowserClientPluginsPart should be a
346
351 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 347 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
352 348
353 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 349 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
354 }; 350 };
355 351
356 } // namespace chrome 352 } // namespace chrome
357 353
358 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 354 #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