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

Side by Side Diff: chrome/browser/services/gcm/gcm_client_mock.h

Issue 261853012: Componentize GCM Part 1: create GCM component and move some files over (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybot Created 6 years, 7 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SERVICES_GCM_GCM_CLIENT_MOCK_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_MOCK_H_
6 #define CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_MOCK_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_MOCK_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "google_apis/gcm/gcm_client.h" 10 #include "google_apis/gcm/gcm_client.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Overridden from GCMClient: 32 // Overridden from GCMClient:
33 // Called on IO thread. 33 // Called on IO thread.
34 virtual void Initialize( 34 virtual void Initialize(
35 const checkin_proto::ChromeBuildProto& chrome_build_proto, 35 const checkin_proto::ChromeBuildProto& chrome_build_proto,
36 const base::FilePath& store_path, 36 const base::FilePath& store_path,
37 const std::vector<std::string>& account_ids, 37 const std::vector<std::string>& account_ids,
38 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, 38 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
39 const scoped_refptr<net::URLRequestContextGetter>& 39 const scoped_refptr<net::URLRequestContextGetter>&
40 url_request_context_getter, 40 url_request_context_getter,
41 scoped_ptr<Encryptor> encryptor,
41 Delegate* delegate) OVERRIDE; 42 Delegate* delegate) OVERRIDE;
42 virtual void Load() OVERRIDE; 43 virtual void Load() OVERRIDE;
43 virtual void Stop() OVERRIDE; 44 virtual void Stop() OVERRIDE;
44 virtual void CheckOut() OVERRIDE; 45 virtual void CheckOut() OVERRIDE;
45 virtual void Register(const std::string& app_id, 46 virtual void Register(const std::string& app_id,
46 const std::vector<std::string>& sender_ids) OVERRIDE; 47 const std::vector<std::string>& sender_ids) OVERRIDE;
47 virtual void Unregister(const std::string& app_id) OVERRIDE; 48 virtual void Unregister(const std::string& app_id) OVERRIDE;
48 virtual void Send(const std::string& app_id, 49 virtual void Send(const std::string& app_id,
49 const std::string& receiver_id, 50 const std::string& receiver_id,
50 const OutgoingMessage& message) OVERRIDE; 51 const OutgoingMessage& message) OVERRIDE;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 Status status_; 86 Status status_;
86 LoadingDelay loading_delay_; 87 LoadingDelay loading_delay_;
87 base::WeakPtrFactory<GCMClientMock> weak_ptr_factory_; 88 base::WeakPtrFactory<GCMClientMock> weak_ptr_factory_;
88 89
89 DISALLOW_COPY_AND_ASSIGN(GCMClientMock); 90 DISALLOW_COPY_AND_ASSIGN(GCMClientMock);
90 }; 91 };
91 92
92 } // namespace gcm 93 } // namespace gcm
93 94
94 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_MOCK_H_ 95 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_CLIENT_MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698