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

Side by Side Diff: chromecast/browser/cast_content_browser_client.h

Issue 1113053002: Set the AudioManager factory before the browser main loop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup + naming Created 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string>
10 #include <vector>
9 11
10 #include "base/macros.h" 12 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
12 #include "content/public/browser/content_browser_client.h" 14 #include "content/public/browser/content_browser_client.h"
13 15
14 namespace breakpad { 16 namespace breakpad {
15 class CrashHandlerHostLinux; 17 class CrashHandlerHostLinux;
16 } 18 }
17 19
18 namespace content { 20 namespace content {
19 class BrowserMessageFilter; 21 class BrowserMessageFilter;
20 } 22 }
21 23
24 namespace media {
25 class AudioManagerFactory;
26 }
27
22 namespace net { 28 namespace net {
23 class HostResolver; 29 class HostResolver;
24 } 30 }
25 31
26 namespace chromecast { 32 namespace chromecast {
27 namespace shell { 33 namespace shell {
28 34
29 class CastBrowserMainParts; 35 class CastBrowserMainParts;
30 class URLRequestContextFactory; 36 class URLRequestContextFactory;
31 37
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) 108 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE)
103 109
104 private: 110 private:
105 void AddNetworkHintsMessageFilter(int render_process_id, 111 void AddNetworkHintsMessageFilter(int render_process_id,
106 net::URLRequestContext* context); 112 net::URLRequestContext* context);
107 113
108 net::X509Certificate* SelectClientCertificateOnIOThread( 114 net::X509Certificate* SelectClientCertificateOnIOThread(
109 GURL requesting_url, 115 GURL requesting_url,
110 int render_process_id); 116 int render_process_id);
111 117
118 scoped_ptr<::media::AudioManagerFactory> PlatformCreateAudioManagerFactory();
119
112 #if !defined(OS_ANDROID) 120 #if !defined(OS_ANDROID)
113 // Returns the crash signal FD corresponding to the current process type. 121 // Returns the crash signal FD corresponding to the current process type.
114 int GetCrashSignalFD(const base::CommandLine& command_line); 122 int GetCrashSignalFD(const base::CommandLine& command_line);
115 123
116 // Creates a CrashHandlerHost instance for the given process type. 124 // Creates a CrashHandlerHost instance for the given process type.
117 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( 125 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost(
118 const std::string& process_type); 126 const std::string& process_type);
119 127
120 // A static cache to hold crash_handlers for each process_type 128 // A static cache to hold crash_handlers for each process_type
121 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; 129 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_;
122 #endif 130 #endif
123 131
124 base::ScopedFD v8_natives_fd_; 132 base::ScopedFD v8_natives_fd_;
125 base::ScopedFD v8_snapshot_fd_; 133 base::ScopedFD v8_snapshot_fd_;
126 134
127 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; 135 scoped_ptr<URLRequestContextFactory> url_request_context_factory_;
128 136
129 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 137 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
130 }; 138 };
131 139
132 } // namespace shell 140 } // namespace shell
133 } // namespace chromecast 141 } // namespace chromecast
134 142
135 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 143 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_browser_main_parts.cc ('k') | chromecast/browser/cast_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698