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

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

Issue 293053014: Retrieve chrome build info in GCMProfileService, instead of GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync 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
« no previous file with comments | « no previous file | chrome/browser/services/gcm/fake_gcm_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FAKE_GCM_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_H_
6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_H_ 6 #define CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_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 19 matching lines...) Expand all
30 }; 30 };
31 31
32 FakeGCMClient(StartMode start_mode, 32 FakeGCMClient(StartMode start_mode,
33 const scoped_refptr<base::SequencedTaskRunner>& ui_thread, 33 const scoped_refptr<base::SequencedTaskRunner>& ui_thread,
34 const scoped_refptr<base::SequencedTaskRunner>& io_thread); 34 const scoped_refptr<base::SequencedTaskRunner>& io_thread);
35 virtual ~FakeGCMClient(); 35 virtual ~FakeGCMClient();
36 36
37 // Overridden from GCMClient: 37 // Overridden from GCMClient:
38 // Called on IO thread. 38 // Called on IO thread.
39 virtual void Initialize( 39 virtual void Initialize(
40 const checkin_proto::ChromeBuildProto& chrome_build_proto, 40 const ChromeBuildInfo& chrome_build_info,
41 const base::FilePath& store_path, 41 const base::FilePath& store_path,
42 const std::vector<std::string>& account_ids, 42 const std::vector<std::string>& account_ids,
43 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner, 43 const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner,
44 const scoped_refptr<net::URLRequestContextGetter>& 44 const scoped_refptr<net::URLRequestContextGetter>&
45 url_request_context_getter, 45 url_request_context_getter,
46 scoped_ptr<Encryptor> encryptor, 46 scoped_ptr<Encryptor> encryptor,
47 Delegate* delegate) OVERRIDE; 47 Delegate* delegate) OVERRIDE;
48 virtual void Start() OVERRIDE; 48 virtual void Start() OVERRIDE;
49 virtual void Stop() OVERRIDE; 49 virtual void Stop() OVERRIDE;
50 virtual void CheckOut() OVERRIDE; 50 virtual void CheckOut() OVERRIDE;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 scoped_refptr<base::SequencedTaskRunner> ui_thread_; 93 scoped_refptr<base::SequencedTaskRunner> ui_thread_;
94 scoped_refptr<base::SequencedTaskRunner> io_thread_; 94 scoped_refptr<base::SequencedTaskRunner> io_thread_;
95 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_; 95 base::WeakPtrFactory<FakeGCMClient> weak_ptr_factory_;
96 96
97 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient); 97 DISALLOW_COPY_AND_ASSIGN(FakeGCMClient);
98 }; 98 };
99 99
100 } // namespace gcm 100 } // namespace gcm
101 101
102 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_H_ 102 #endif // CHROME_BROWSER_SERVICES_GCM_FAKE_GCM_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/services/gcm/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698