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

Side by Side Diff: content/renderer/push_messaging_dispatcher.h

Issue 633303002: Replace FINAL and OVERRIDE with their C++11 counterparts in content/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « content/renderer/pepper/video_decoder_shim.h ('k') | content/renderer/render_frame_impl.h » ('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 CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_
6 #define CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ 6 #define CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/id_map.h" 10 #include "base/id_map.h"
(...skipping 17 matching lines...) Expand all
28 struct Manifest; 28 struct Manifest;
29 29
30 class PushMessagingDispatcher : public RenderFrameObserver, 30 class PushMessagingDispatcher : public RenderFrameObserver,
31 public blink::WebPushClient { 31 public blink::WebPushClient {
32 public: 32 public:
33 explicit PushMessagingDispatcher(RenderFrame* render_frame); 33 explicit PushMessagingDispatcher(RenderFrame* render_frame);
34 virtual ~PushMessagingDispatcher(); 34 virtual ~PushMessagingDispatcher();
35 35
36 private: 36 private:
37 // RenderFrame::Observer implementation. 37 // RenderFrame::Observer implementation.
38 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 38 virtual bool OnMessageReceived(const IPC::Message& message) override;
39 39
40 // WebPushClient implementation. 40 // WebPushClient implementation.
41 virtual void registerPushMessaging( 41 virtual void registerPushMessaging(
42 const blink::WebString& sender_id, 42 const blink::WebString& sender_id,
43 blink::WebPushRegistrationCallbacks* callbacks, 43 blink::WebPushRegistrationCallbacks* callbacks,
44 blink::WebServiceWorkerProvider* service_worker_provider); 44 blink::WebServiceWorkerProvider* service_worker_provider);
45 45
46 void DoRegister(const std::string& sender_id, 46 void DoRegister(const std::string& sender_id,
47 blink::WebPushRegistrationCallbacks* callbacks, 47 blink::WebPushRegistrationCallbacks* callbacks,
48 blink::WebServiceWorkerProvider* service_worker_provider, 48 blink::WebServiceWorkerProvider* service_worker_provider,
49 const Manifest& manifest); 49 const Manifest& manifest);
50 50
51 void OnRegisterSuccess(int32 callbacks_id, 51 void OnRegisterSuccess(int32 callbacks_id,
52 const GURL& endpoint, 52 const GURL& endpoint,
53 const std::string& registration_id); 53 const std::string& registration_id);
54 54
55 void OnRegisterError(int32 callbacks_id, PushMessagingStatus status); 55 void OnRegisterError(int32 callbacks_id, PushMessagingStatus status);
56 56
57 IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer> 57 IDMap<blink::WebPushRegistrationCallbacks, IDMapOwnPointer>
58 registration_callbacks_; 58 registration_callbacks_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher); 60 DISALLOW_COPY_AND_ASSIGN(PushMessagingDispatcher);
61 }; 61 };
62 62
63 } // namespace content 63 } // namespace content
64 64
65 #endif // CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_ 65 #endif // CONTENT_RENDERER_PUSH_MESSAGING_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/pepper/video_decoder_shim.h ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698