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

Side by Side Diff: chrome/browser/ui/webui/invalidations_message_handler.cc

Issue 1191393008: Introduce a layering in the invalidation component as public and impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly forbid content to prevent future additions Created 5 years, 5 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 | « chrome/browser/ui/webui/invalidations_message_handler.h ('k') | chrome/chrome_browser.gypi » ('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 #include "chrome/browser/ui/webui/invalidations_message_handler.h" 5 #include "chrome/browser/ui/webui/invalidations_message_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" 8 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "components/invalidation/invalidation_handler.h" 10 #include "components/invalidation/impl/invalidation_logger.h"
11 #include "components/invalidation/invalidation_logger.h" 11 #include "components/invalidation/impl/profile_invalidation_provider.h"
12 #include "components/invalidation/invalidation_service.h" 12 #include "components/invalidation/public/invalidation_handler.h"
13 #include "components/invalidation/profile_invalidation_provider.h" 13 #include "components/invalidation/public/invalidation_service.h"
14 #include "content/public/browser/web_ui.h" 14 #include "content/public/browser/web_ui.h"
15 15
16 namespace invalidation { 16 namespace invalidation {
17 class InvalidationLogger; 17 class InvalidationLogger;
18 } // namespace invalidation 18 } // namespace invalidation
19 19
20 namespace syncer { 20 namespace syncer {
21 class ObjectIdInvalidationMap; 21 class ObjectIdInvalidationMap;
22 } // namespace syncer 22 } // namespace syncer
23 23
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 scoped_ptr<base::ListValue> invalidations_list = new_invalidations.ToValue(); 116 scoped_ptr<base::ListValue> invalidations_list = new_invalidations.ToValue();
117 web_ui()->CallJavascriptFunction("chrome.invalidations.logInvalidations", 117 web_ui()->CallJavascriptFunction("chrome.invalidations.logInvalidations",
118 *invalidations_list); 118 *invalidations_list);
119 } 119 }
120 120
121 void InvalidationsMessageHandler::OnDetailedStatus( 121 void InvalidationsMessageHandler::OnDetailedStatus(
122 const base::DictionaryValue& network_details) { 122 const base::DictionaryValue& network_details) {
123 web_ui()->CallJavascriptFunction("chrome.invalidations.updateDetailedStatus", 123 web_ui()->CallJavascriptFunction("chrome.invalidations.updateDetailedStatus",
124 network_details); 124 network_details);
125 } 125 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/invalidations_message_handler.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698