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

Side by Side Diff: components/signin/core/browser/fake_gaia_cookie_manager_service.h

Issue 2511973004: components: Cleanup class/struct fwd declarations (Closed)
Patch Set: Rebase on top of current master branch Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ 4 #ifndef COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_
5 #define COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ 5 #define COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 11 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
12 #include "net/url_request/test_url_fetcher_factory.h" 12 #include "net/url_request/test_url_fetcher_factory.h"
13 13
14 namespace content {
15 class BrowserContext;
16 }
17
18 class FakeGaiaCookieManagerService : public GaiaCookieManagerService { 14 class FakeGaiaCookieManagerService : public GaiaCookieManagerService {
19 public: 15 public:
20 FakeGaiaCookieManagerService(OAuth2TokenService* token_service, 16 FakeGaiaCookieManagerService(OAuth2TokenService* token_service,
21 const std::string& source, 17 const std::string& source,
22 SigninClient* client); 18 SigninClient* client);
23 19
24 void Init(net::FakeURLFetcherFactory* url_fetcher_factory); 20 void Init(net::FakeURLFetcherFactory* url_fetcher_factory);
25 21
26 void SetListAccountsResponseHttpNotFound(); 22 void SetListAccountsResponseHttpNotFound();
27 void SetListAccountsResponseWebLoginRequired(); 23 void SetListAccountsResponseWebLoginRequired();
(...skipping 19 matching lines...) Expand all
47 const GaiaCookieManagerService::GaiaCookieRequest& request, 43 const GaiaCookieManagerService::GaiaCookieRequest& request,
48 const std::string& source_default) override; 44 const std::string& source_default) override;
49 45
50 // Provide a fake response for calls to /ListAccounts. 46 // Provide a fake response for calls to /ListAccounts.
51 net::FakeURLFetcherFactory* url_fetcher_factory_; 47 net::FakeURLFetcherFactory* url_fetcher_factory_;
52 48
53 DISALLOW_COPY_AND_ASSIGN(FakeGaiaCookieManagerService); 49 DISALLOW_COPY_AND_ASSIGN(FakeGaiaCookieManagerService);
54 }; 50 };
55 51
56 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_ 52 #endif // COMPONENTS_SIGNIN_CORE_BROWSER_FAKE_GAIA_COOKIE_MANAGER_SERVICE_H_
OLDNEW
« no previous file with comments | « components/signin/core/browser/fake_account_fetcher_service.h ('k') | components/signin/core/browser/signin_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698