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

Side by Side Diff: content/browser/geolocation/fake_access_token_store.h

Issue 6591034: Move core pieces of geolocation from chrome to content.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix Linux build Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 5 #ifndef CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
6 #define CHROME_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 6 #define CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/geolocation/access_token_store.h" 9 #include "content/browser/geolocation/access_token_store.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 // A fake (non-persisted) access token store instance useful for testing. 12 // A fake (non-persisted) access token store instance useful for testing.
13 class FakeAccessTokenStore : public AccessTokenStore { 13 class FakeAccessTokenStore : public AccessTokenStore {
14 public: 14 public:
15 FakeAccessTokenStore(); 15 FakeAccessTokenStore();
16 16
17 void NotifyDelegateTokensLoaded(); 17 void NotifyDelegateTokensLoaded();
18 18
19 // AccessTokenStore 19 // AccessTokenStore
20 virtual void DoLoadAccessTokens( 20 virtual void DoLoadAccessTokens(
21 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request); 21 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request);
22 virtual void SaveAccessToken( 22 virtual void SaveAccessToken(
23 const GURL& server_url, const string16& access_token); 23 const GURL& server_url, const string16& access_token);
24 24
25 AccessTokenSet access_token_set_; 25 AccessTokenSet access_token_set_;
26 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request_; 26 scoped_refptr<CancelableRequest<LoadAccessTokensCallbackType> > request_;
27 27
28 private: 28 private:
29 virtual ~FakeAccessTokenStore(); 29 virtual ~FakeAccessTokenStore();
30 30
31 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore); 31 DISALLOW_COPY_AND_ASSIGN(FakeAccessTokenStore);
32 }; 32 };
33 33
34 #endif // CHROME_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_ 34 #endif // CONTENT_BROWSER_GEOLOCATION_FAKE_ACCESS_TOKEN_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698