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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2643183002: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. (Closed)
Patch Set: Convert ChromeViewHostMsg_UpdatedCacheStats to use mojo. Created 3 years, 7 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 CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/callback.h" 16 #include "base/callback.h"
17 #include "base/task_scheduler/task_scheduler.h" 17 #include "base/task_scheduler/task_scheduler.h"
18 #include "base/values.h" 18 #include "base/values.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "content/public/browser/certificate_request_result_type.h" 20 #include "content/public/browser/certificate_request_result_type.h"
21 #include "content/public/browser/navigation_throttle.h" 21 #include "content/public/browser/navigation_throttle.h"
22 #include "content/public/common/associated_interface_registry.h"
22 #include "content/public/common/content_client.h" 23 #include "content/public/common/content_client.h"
23 #include "content/public/common/media_stream_request.h" 24 #include "content/public/common/media_stream_request.h"
24 #include "content/public/common/resource_type.h" 25 #include "content/public/common/resource_type.h"
25 #include "content/public/common/service_info.h" 26 #include "content/public/common/service_info.h"
26 #include "content/public/common/socket_permission_request.h" 27 #include "content/public/common/socket_permission_request.h"
27 #include "content/public/common/window_container_type.mojom.h" 28 #include "content/public/common/window_container_type.mojom.h"
28 #include "media/audio/audio_manager.h" 29 #include "media/audio/audio_manager.h"
29 #include "media/media_features.h" 30 #include "media/media_features.h"
30 #include "media/mojo/interfaces/remoting.mojom.h" 31 #include "media/mojo/interfaces/remoting.mojom.h"
31 #include "net/base/mime_util.h" 32 #include "net/base/mime_util.h"
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 // returning a random GUID. 656 // returning a random GUID.
656 virtual std::string GetServiceUserIdForBrowserContext( 657 virtual std::string GetServiceUserIdForBrowserContext(
657 BrowserContext* browser_context); 658 BrowserContext* browser_context);
658 659
659 // Allows to register browser interfaces exposed through the 660 // Allows to register browser interfaces exposed through the
660 // RenderProcessHost. Note that interface factory callbacks added to 661 // RenderProcessHost. Note that interface factory callbacks added to
661 // |registry| will by default be run immediately on the IO thread, unless a 662 // |registry| will by default be run immediately on the IO thread, unless a
662 // task runner is provided. 663 // task runner is provided.
663 virtual void ExposeInterfacesToRenderer( 664 virtual void ExposeInterfacesToRenderer(
664 service_manager::BinderRegistry* registry, 665 service_manager::BinderRegistry* registry,
666 AssociatedInterfaceRegistry* associated_registry,
665 RenderProcessHost* render_process_host) {} 667 RenderProcessHost* render_process_host) {}
666 668
667 // Called when RenderFrameHostImpl connects to the Media service. Expose 669 // Called when RenderFrameHostImpl connects to the Media service. Expose
668 // interfaces to the service using |registry|. 670 // interfaces to the service using |registry|.
669 virtual void ExposeInterfacesToMediaService( 671 virtual void ExposeInterfacesToMediaService(
670 service_manager::InterfaceRegistry* registry, 672 service_manager::InterfaceRegistry* registry,
671 RenderFrameHost* render_frame_host) {} 673 RenderFrameHost* render_frame_host) {}
672 674
673 // Allows to register browser Mojo interfaces exposed through the 675 // Allows to register browser Mojo interfaces exposed through the
674 // RenderFrameHost. 676 // RenderFrameHost.
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 virtual bool ShouldRedirectDOMStorageTaskRunner(); 830 virtual bool ShouldRedirectDOMStorageTaskRunner();
829 831
830 // If this returns true, all BrowserThreads (but UI/IO) that support it on 832 // If this returns true, all BrowserThreads (but UI/IO) that support it on
831 // this platform will experimentally be redirected to TaskScheduler. 833 // this platform will experimentally be redirected to TaskScheduler.
832 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 834 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
833 }; 835 };
834 836
835 } // namespace content 837 } // namespace content
836 838
837 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 839 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698