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

Side by Side Diff: content/browser/renderer_host/media/webrtc_identity_service_host.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 15 matching lines...) Expand all
26 // ERR_INSUFFICIENT_RESOURCES will be sent back to the renderer. 26 // ERR_INSUFFICIENT_RESOURCES will be sent back to the renderer.
27 class CONTENT_EXPORT WebRTCIdentityServiceHost : public BrowserMessageFilter { 27 class CONTENT_EXPORT WebRTCIdentityServiceHost : public BrowserMessageFilter {
28 public: 28 public:
29 WebRTCIdentityServiceHost(int renderer_process_id, 29 WebRTCIdentityServiceHost(int renderer_process_id,
30 scoped_refptr<WebRTCIdentityStore> identity_store); 30 scoped_refptr<WebRTCIdentityStore> identity_store);
31 31
32 protected: 32 protected:
33 virtual ~WebRTCIdentityServiceHost(); 33 virtual ~WebRTCIdentityServiceHost();
34 34
35 // content::BrowserMessageFilter override. 35 // content::BrowserMessageFilter override.
36 virtual bool OnMessageReceived(const IPC::Message& message, 36 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
37 bool* message_was_ok) OVERRIDE;
38 37
39 private: 38 private:
40 // |sequence_number| is the same as in the OnRequestIdentity call. 39 // |sequence_number| is the same as in the OnRequestIdentity call.
41 // See WebRTCIdentityStore for the meaning of the parameters. 40 // See WebRTCIdentityStore for the meaning of the parameters.
42 void OnComplete(int sequence_number, 41 void OnComplete(int sequence_number,
43 int status, 42 int status,
44 const std::string& certificate, 43 const std::string& certificate,
45 const std::string& private_key); 44 const std::string& private_key);
46 45
47 // |sequence_number| is a renderer wide unique number for each request and 46 // |sequence_number| is a renderer wide unique number for each request and
(...skipping 14 matching lines...) Expand all
62 base::Closure cancel_callback_; 61 base::Closure cancel_callback_;
63 scoped_refptr<WebRTCIdentityStore> identity_store_; 62 scoped_refptr<WebRTCIdentityStore> identity_store_;
64 base::WeakPtrFactory<WebRTCIdentityServiceHost> weak_factory_; 63 base::WeakPtrFactory<WebRTCIdentityServiceHost> weak_factory_;
65 64
66 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityServiceHost); 65 DISALLOW_COPY_AND_ASSIGN(WebRTCIdentityServiceHost);
67 }; 66 };
68 67
69 } // namespace content 68 } // namespace content
70 69
71 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_ 70 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEBRTC_IDENTITY_SERVICE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698