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

Side by Side Diff: chrome/browser/extensions/extension_gcm_app_handler.h

Issue 2473813002: Notify GCMAppHandlers when the store is reset, so they clear cached IDs (Closed)
Patch Set: Update Cryptauth comment Created 4 years, 1 month 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 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_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public: 45 public:
46 explicit ExtensionGCMAppHandler(content::BrowserContext* context); 46 explicit ExtensionGCMAppHandler(content::BrowserContext* context);
47 ~ExtensionGCMAppHandler() override; 47 ~ExtensionGCMAppHandler() override;
48 48
49 // BrowserContextKeyedAPI implementation. 49 // BrowserContextKeyedAPI implementation.
50 static BrowserContextKeyedAPIFactory<ExtensionGCMAppHandler>* 50 static BrowserContextKeyedAPIFactory<ExtensionGCMAppHandler>*
51 GetFactoryInstance(); 51 GetFactoryInstance();
52 52
53 // gcm::GCMAppHandler implementation. 53 // gcm::GCMAppHandler implementation.
54 void ShutdownHandler() override; 54 void ShutdownHandler() override;
55 void OnStoreReset() override;
55 void OnMessage(const std::string& app_id, 56 void OnMessage(const std::string& app_id,
56 const gcm::IncomingMessage& message) override; 57 const gcm::IncomingMessage& message) override;
57 void OnMessagesDeleted(const std::string& app_id) override; 58 void OnMessagesDeleted(const std::string& app_id) override;
58 void OnSendError( 59 void OnSendError(
59 const std::string& app_id, 60 const std::string& app_id,
60 const gcm::GCMClient::SendErrorDetails& send_error_details) override; 61 const gcm::GCMClient::SendErrorDetails& send_error_details) override;
61 void OnSendAcknowledged(const std::string& app_id, 62 void OnSendAcknowledged(const std::string& app_id,
62 const std::string& message_id) override; 63 const std::string& message_id) override;
63 64
64 protected: 65 protected:
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 std::unique_ptr<extensions::GcmJsEventRouter> js_event_router_; 104 std::unique_ptr<extensions::GcmJsEventRouter> js_event_router_;
104 105
105 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_; 106 base::WeakPtrFactory<ExtensionGCMAppHandler> weak_factory_;
106 107
107 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler); 108 DISALLOW_COPY_AND_ASSIGN(ExtensionGCMAppHandler);
108 }; 109 };
109 110
110 } // namespace extensions 111 } // namespace extensions
111 112
112 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_ 113 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_GCM_APP_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/policy/heartbeat_scheduler_unittest.cc ('k') | chrome/browser/extensions/extension_gcm_app_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698