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

Side by Side Diff: google_apis/gcm/gcm_client_impl.cc

Issue 135303002: Adding a user list (to be consumed by GCM Client Implementation) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Win64 compilation issue and adding comments to test Created 6 years, 11 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
« no previous file with comments | « google_apis/gcm/gcm_client_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "google_apis/gcm/gcm_client_impl.h" 5 #include "google_apis/gcm/gcm_client_impl.h"
6 6
7 #include "base/files/file_path.h"
8 #include "base/sequenced_task_runner.h"
9 #include "google_apis/gcm/engine/gcm_store.h"
10 #include "google_apis/gcm/engine/gcm_store_impl.h"
11 #include "google_apis/gcm/engine/user_list.h"
12
7 namespace gcm { 13 namespace gcm {
8 14
9 GCMClientImpl::GCMClientImpl() { 15 GCMClientImpl::GCMClientImpl() {
10 } 16 }
11 17
12 GCMClientImpl::~GCMClientImpl() { 18 GCMClientImpl::~GCMClientImpl() {
13 } 19 }
14 20
21 void GCMClientImpl::Initialize(
22 const base::FilePath& path,
23 scoped_refptr<base::SequencedTaskRunner> blocking_task_runner) {
24 gcm_store_.reset(new GCMStoreImpl(path, blocking_task_runner));
25 user_list_.reset(new UserList(gcm_store_.get()));
26 }
27
15 void GCMClientImpl::SetUserDelegate(const std::string& username, 28 void GCMClientImpl::SetUserDelegate(const std::string& username,
16 Delegate* delegate) { 29 Delegate* delegate) {
17 } 30 }
18 31
19 void GCMClientImpl::CheckIn(const std::string& username) { 32 void GCMClientImpl::CheckIn(const std::string& username) {
20 } 33 }
21 34
22 void GCMClientImpl::Register(const std::string& username, 35 void GCMClientImpl::Register(const std::string& username,
23 const std::string& app_id, 36 const std::string& app_id,
24 const std::string& cert, 37 const std::string& cert,
25 const std::vector<std::string>& sender_ids) { 38 const std::vector<std::string>& sender_ids) {
26 } 39 }
27 40
28 void GCMClientImpl::Unregister(const std::string& username, 41 void GCMClientImpl::Unregister(const std::string& username,
29 const std::string& app_id) { 42 const std::string& app_id) {
30 } 43 }
31 44
32 void GCMClientImpl::Send(const std::string& username, 45 void GCMClientImpl::Send(const std::string& username,
33 const std::string& app_id, 46 const std::string& app_id,
34 const std::string& receiver_id, 47 const std::string& receiver_id,
35 const OutgoingMessage& message) { 48 const OutgoingMessage& message) {
36 } 49 }
37 50
38 bool GCMClientImpl::IsLoading() const { 51 bool GCMClientImpl::IsLoading() const {
39 return false; 52 return false;
40 } 53 }
41 54
42 } // namespace gcm 55 } // namespace gcm
OLDNEW
« no previous file with comments | « google_apis/gcm/gcm_client_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698