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

Side by Side Diff: content/browser/renderer_host/media/device_request_message_filter.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_DEVICE_REQUEST_MESSAGE_FILTER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 int page_request_id, 46 int page_request_id,
47 const std::string& label, 47 const std::string& label,
48 const StreamDeviceInfo& video_device) OVERRIDE {} 48 const StreamDeviceInfo& video_device) OVERRIDE {}
49 // DevicesEnumerated() is the only callback we're interested in. 49 // DevicesEnumerated() is the only callback we're interested in.
50 virtual void DevicesEnumerated(int render_view_id, 50 virtual void DevicesEnumerated(int render_view_id,
51 int page_request_id, 51 int page_request_id,
52 const std::string& label, 52 const std::string& label,
53 const StreamDeviceInfoArray& devices) OVERRIDE; 53 const StreamDeviceInfoArray& devices) OVERRIDE;
54 54
55 // BrowserMessageFilter implementation. 55 // BrowserMessageFilter implementation.
56 virtual bool OnMessageReceived(const IPC::Message& message, 56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
57 bool* message_was_ok) OVERRIDE;
58 virtual void OnChannelClosing() OVERRIDE; 57 virtual void OnChannelClosing() OVERRIDE;
59 58
60 protected: 59 protected:
61 virtual ~DeviceRequestMessageFilter(); 60 virtual ~DeviceRequestMessageFilter();
62 61
63 private: 62 private:
64 void OnGetSources(int request_id, const GURL& security_origin); 63 void OnGetSources(int request_id, const GURL& security_origin);
65 64
66 // Owned by ProfileIOData which is guaranteed to outlive DRMF. 65 // Owned by ProfileIOData which is guaranteed to outlive DRMF.
67 ResourceContext* resource_context_; 66 ResourceContext* resource_context_;
68 MediaStreamManager* media_stream_manager_; 67 MediaStreamManager* media_stream_manager_;
69 68
70 struct DeviceRequest; 69 struct DeviceRequest;
71 typedef std::vector<DeviceRequest> DeviceRequestList; 70 typedef std::vector<DeviceRequest> DeviceRequestList;
72 // List of all requests. 71 // List of all requests.
73 DeviceRequestList requests_; 72 DeviceRequestList requests_;
74 73
75 int render_process_id_; 74 int render_process_id_;
76 75
77 DISALLOW_COPY_AND_ASSIGN(DeviceRequestMessageFilter); 76 DISALLOW_COPY_AND_ASSIGN(DeviceRequestMessageFilter);
78 }; 77 };
79 78
80 } // namespace content 79 } // namespace content
81 80
82 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_ 81 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_DEVICE_REQUEST_MESSAGE_FILTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698