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

Side by Side Diff: content/browser/geolocation/arbitrator_dependency_factory.cc

Issue 8997008: Move AccessTokenStore to Content API, now that it is a pure-virtual class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head (pure merge). Created 9 years 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/browser/geolocation/arbitrator_dependency_factory.h" 5 #include "content/browser/geolocation/arbitrator_dependency_factory.h"
6 6
7 #include "base/time.h" 7 #include "base/time.h"
8 #include "content/browser/geolocation/access_token_store.h"
9 #include "content/browser/geolocation/location_provider.h" 8 #include "content/browser/geolocation/location_provider.h"
9 #include "content/public/browser/access_token_store.h"
10 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
11 11
12 using content::AccessTokenStore;
13
12 // GeolocationArbitratorDependencyFactory 14 // GeolocationArbitratorDependencyFactory
13 GeolocationArbitratorDependencyFactory:: 15 GeolocationArbitratorDependencyFactory::
14 ~GeolocationArbitratorDependencyFactory() { 16 ~GeolocationArbitratorDependencyFactory() {
15 } 17 }
16 18
17 // DefaultGeolocationArbitratorDependencyFactory 19 // DefaultGeolocationArbitratorDependencyFactory
18 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow 20 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow
19 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { 21 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() {
20 return base::Time::Now; 22 return base::Time::Now;
21 } 23 }
(...skipping 10 matching lines...) Expand all
32 const GURL& url, 34 const GURL& url,
33 const string16& access_token) { 35 const string16& access_token) {
34 return ::NewNetworkLocationProvider(access_token_store, context, 36 return ::NewNetworkLocationProvider(access_token_store, context,
35 url, access_token); 37 url, access_token);
36 } 38 }
37 39
38 LocationProviderBase* 40 LocationProviderBase*
39 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { 41 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() {
40 return ::NewSystemLocationProvider(); 42 return ::NewSystemLocationProvider();
41 } 43 }
OLDNEW
« no previous file with comments | « content/browser/geolocation/arbitrator_dependency_factory.h ('k') | content/browser/geolocation/fake_access_token_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698