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

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

Issue 2618393003: Remove ScopedVector from ContentBrowserClient. (Closed)
Patch Set: chromeos Created 3 years, 11 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 content::WebContents* web_contents) override; 238 content::WebContents* web_contents) override;
239 void GetAdditionalAllowedSchemesForFileSystem( 239 void GetAdditionalAllowedSchemesForFileSystem(
240 std::vector<std::string>* additional_schemes) override; 240 std::vector<std::string>* additional_schemes) override;
241 void GetSchemesBypassingSecureContextCheckWhitelist( 241 void GetSchemesBypassingSecureContextCheckWhitelist(
242 std::set<std::string>* schemes) override; 242 std::set<std::string>* schemes) override;
243 void GetURLRequestAutoMountHandlers( 243 void GetURLRequestAutoMountHandlers(
244 std::vector<storage::URLRequestAutoMountHandler>* handlers) override; 244 std::vector<storage::URLRequestAutoMountHandler>* handlers) override;
245 void GetAdditionalFileSystemBackends( 245 void GetAdditionalFileSystemBackends(
246 content::BrowserContext* browser_context, 246 content::BrowserContext* browser_context,
247 const base::FilePath& storage_partition_path, 247 const base::FilePath& storage_partition_path,
248 ScopedVector<storage::FileSystemBackend>* additional_backends) override; 248 std::vector<std::unique_ptr<storage::FileSystemBackend>>*
249 additional_backends) override;
249 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override; 250 content::DevToolsManagerDelegate* GetDevToolsManagerDelegate() override;
250 content::TracingDelegate* GetTracingDelegate() override; 251 content::TracingDelegate* GetTracingDelegate() override;
251 bool IsPluginAllowedToCallRequestOSFileHandle( 252 bool IsPluginAllowedToCallRequestOSFileHandle(
252 content::BrowserContext* browser_context, 253 content::BrowserContext* browser_context,
253 const GURL& url) override; 254 const GURL& url) override;
254 bool IsPluginAllowedToUseDevChannelAPIs( 255 bool IsPluginAllowedToUseDevChannelAPIs(
255 content::BrowserContext* browser_context, 256 content::BrowserContext* browser_context,
256 const GURL& url) override; 257 const GURL& url) override;
257 void OverridePageVisibilityState( 258 void OverridePageVisibilityState(
258 content::RenderFrameHost* render_frame_host, 259 content::RenderFrameHost* render_frame_host,
(...skipping 29 matching lines...) Expand all
288 base::StringPiece name) override; 289 base::StringPiece name) override;
289 std::vector<content::ContentBrowserClient::ServiceManifestInfo> 290 std::vector<content::ContentBrowserClient::ServiceManifestInfo>
290 GetExtraServiceManifests() override; 291 GetExtraServiceManifests() override;
291 void OpenURL(content::BrowserContext* browser_context, 292 void OpenURL(content::BrowserContext* browser_context,
292 const content::OpenURLParams& params, 293 const content::OpenURLParams& params,
293 const base::Callback<void(content::WebContents*)>& callback) 294 const base::Callback<void(content::WebContents*)>& callback)
294 override; 295 override;
295 content::PresentationServiceDelegate* GetPresentationServiceDelegate( 296 content::PresentationServiceDelegate* GetPresentationServiceDelegate(
296 content::WebContents* web_contents) override; 297 content::WebContents* web_contents) override;
297 void RecordURLMetric(const std::string& metric, const GURL& url) override; 298 void RecordURLMetric(const std::string& metric, const GURL& url) override;
298 ScopedVector<content::NavigationThrottle> CreateThrottlesForNavigation( 299 std::vector<std::unique_ptr<content::NavigationThrottle>>
299 content::NavigationHandle* handle) override; 300 CreateThrottlesForNavigation(content::NavigationHandle* handle) override;
300 std::unique_ptr<content::NavigationUIData> GetNavigationUIData( 301 std::unique_ptr<content::NavigationUIData> GetNavigationUIData(
301 content::NavigationHandle* navigation_handle) override; 302 content::NavigationHandle* navigation_handle) override;
302 std::unique_ptr<content::MemoryCoordinatorDelegate> 303 std::unique_ptr<content::MemoryCoordinatorDelegate>
303 GetMemoryCoordinatorDelegate() override; 304 GetMemoryCoordinatorDelegate() override;
304 ::rappor::RapporService* GetRapporService() override; 305 ::rappor::RapporService* GetRapporService() override;
305 306
306 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 307 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
307 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host, 308 void CreateMediaRemoter(content::RenderFrameHost* render_frame_host,
308 media::mojom::RemotingSourcePtr source, 309 media::mojom::RemotingSourcePtr source,
309 media::mojom::RemoterRequest request) final; 310 media::mojom::RemoterRequest request) final;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 // Vector of additional ChromeContentBrowserClientParts. 363 // Vector of additional ChromeContentBrowserClientParts.
363 // Parts are deleted in the reverse order they are added. 364 // Parts are deleted in the reverse order they are added.
364 std::vector<ChromeContentBrowserClientParts*> extra_parts_; 365 std::vector<ChromeContentBrowserClientParts*> extra_parts_;
365 366
366 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_; 367 base::WeakPtrFactory<ChromeContentBrowserClient> weak_factory_;
367 368
368 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); 369 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient);
369 }; 370 };
370 371
371 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 372 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698