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

Side by Side Diff: chrome/browser/extensions/api/gcm/gcm_api.cc

Issue 2657823005: Move //c/b/services/gcm/ to //c/b/gcm/ (Closed)
Patch Set: Created 3 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
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 "chrome/browser/extensions/api/gcm/gcm_api.h" 5 #include "chrome/browser/extensions/api/gcm/gcm_api.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ptr_util.h" 14 #include "base/memory/ptr_util.h"
15 #include "base/metrics/histogram_macros.h" 15 #include "base/metrics/histogram_macros.h"
16 #include "base/strings/string_number_conversions.h" 16 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_util.h" 17 #include "base/strings/string_util.h"
18 #include "chrome/browser/gcm/gcm_profile_service_factory.h"
18 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
21 #include "chrome/common/extensions/api/gcm.h" 21 #include "chrome/common/extensions/api/gcm.h"
22 #include "components/gcm_driver/common/gcm_messages.h" 22 #include "components/gcm_driver/common/gcm_messages.h"
23 #include "components/gcm_driver/gcm_driver.h" 23 #include "components/gcm_driver/gcm_driver.h"
24 #include "components/gcm_driver/gcm_profile_service.h" 24 #include "components/gcm_driver/gcm_profile_service.h"
25 #include "extensions/browser/event_router.h" 25 #include "extensions/browser/event_router.h"
26 #include "extensions/common/extension.h" 26 #include "extensions/common/extension.h"
27 27
28 namespace { 28 namespace {
29 29
30 const size_t kMaximumMessageSize = 4096; // in bytes. 30 const size_t kMaximumMessageSize = 4096; // in bytes.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 error.details.additional_properties = send_error_details.additional_data; 242 error.details.additional_properties = send_error_details.additional_data;
243 243
244 std::unique_ptr<Event> event( 244 std::unique_ptr<Event> event(
245 new Event(events::GCM_ON_SEND_ERROR, api::gcm::OnSendError::kEventName, 245 new Event(events::GCM_ON_SEND_ERROR, api::gcm::OnSendError::kEventName,
246 api::gcm::OnSendError::Create(error), profile_)); 246 api::gcm::OnSendError::Create(error), profile_));
247 EventRouter::Get(profile_) 247 EventRouter::Get(profile_)
248 ->DispatchEventToExtension(app_id, std::move(event)); 248 ->DispatchEventToExtension(app_id, std::move(event));
249 } 249 }
250 250
251 } // namespace extensions 251 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/net/wake_on_wifi_manager_unittest.cc ('k') | chrome/browser/extensions/api/gcm/gcm_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698