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

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

Issue 2028823002: Refactor to make BlimpLocationProvider accessible to content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Makes testing override location provider accessible Created 4 years, 6 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>
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 const base::FilePath& storage_partition_path, 609 const base::FilePath& storage_partition_path,
610 ScopedVector<storage::FileSystemBackend>* additional_backends) {} 610 ScopedVector<storage::FileSystemBackend>* additional_backends) {}
611 611
612 // Allows an embedder to return its own LocationProvider implementation. 612 // Allows an embedder to return its own LocationProvider implementation.
613 // Return nullptr to use the default one for the platform to be created. 613 // Return nullptr to use the default one for the platform to be created.
614 // FYI: Used by an external project; please don't remove. 614 // FYI: Used by an external project; please don't remove.
615 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more 615 // Contact Viatcheslav Ostapenko at sl.ostapenko@samsung.com for more
616 // information. 616 // information.
617 virtual LocationProvider* OverrideSystemLocationProvider(); 617 virtual LocationProvider* OverrideSystemLocationProvider();
618 618
619 // Allows an embedder to return its own LocationProvider to be used as 619 // Returns true if the location API should use network-based
620 // its sole LocationProvider. Called when any other LocationProvider 620 // location approximation.
621 // would be unsuitable. 621 virtual bool UseNetworkLocationProviders();
622 virtual LocationProvider* SoleLocationProvider();
623 622
624 // Creates a new DevToolsManagerDelegate. The caller owns the returned value. 623 // Creates a new DevToolsManagerDelegate. The caller owns the returned value.
625 // It's valid to return nullptr. 624 // It's valid to return nullptr.
626 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate(); 625 virtual DevToolsManagerDelegate* GetDevToolsManagerDelegate();
627 626
628 // Creates a new TracingDelegate. The caller owns the returned value. 627 // Creates a new TracingDelegate. The caller owns the returned value.
629 // It's valid to return nullptr. 628 // It's valid to return nullptr.
630 virtual TracingDelegate* GetTracingDelegate(); 629 virtual TracingDelegate* GetTracingDelegate();
631 630
632 // Returns true if plugin referred to by the url can use 631 // Returns true if plugin referred to by the url can use
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 776 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
778 // implementation. Return nullptr to disable external surface video. 777 // implementation. Return nullptr to disable external surface video.
779 virtual ExternalVideoSurfaceContainer* 778 virtual ExternalVideoSurfaceContainer*
780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 779 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
781 #endif 780 #endif
782 }; 781 };
783 782
784 } // namespace content 783 } // namespace content
785 784
786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 785 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698