OLD | NEW |
---|---|
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 CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
51 // ExtensionFunction overrides. | 51 // ExtensionFunction overrides. |
52 virtual bool RunAsync() OVERRIDE; | 52 virtual bool RunAsync() OVERRIDE; |
53 | 53 |
54 // content::WebContentsObserver overrides. | 54 // content::WebContentsObserver overrides. |
55 virtual void WebContentsDestroyed() OVERRIDE; | 55 virtual void WebContentsDestroyed() OVERRIDE; |
56 | 56 |
57 void OnPickerDialogResults(content::DesktopMediaID source); | 57 void OnPickerDialogResults(content::DesktopMediaID source); |
58 | 58 |
59 int request_id_; | 59 int request_id_; |
60 | 60 |
61 // Parameters of the tab the stream is requested for. | 61 // URL of page that used the API to initiate desktop capture. |
Sergey Ulanov
2014/07/09 18:06:25
This comment is not correct. Desktop Capture API a
miu
2014/07/09 23:28:05
Done.
| |
62 int render_process_id_; | |
63 int render_view_id_; | |
64 GURL origin_; | 62 GURL origin_; |
65 | 63 |
66 scoped_ptr<DesktopMediaPicker> picker_; | 64 scoped_ptr<DesktopMediaPicker> picker_; |
67 }; | 65 }; |
68 | 66 |
69 class DesktopCaptureCancelChooseDesktopMediaFunction | 67 class DesktopCaptureCancelChooseDesktopMediaFunction |
70 : public ChromeSyncExtensionFunction { | 68 : public ChromeSyncExtensionFunction { |
71 public: | 69 public: |
72 DECLARE_EXTENSION_FUNCTION("desktopCapture.cancelChooseDesktopMedia", | 70 DECLARE_EXTENSION_FUNCTION("desktopCapture.cancelChooseDesktopMedia", |
73 DESKTOPCAPTURE_CANCELCHOOSEDESKTOPMEDIA) | 71 DESKTOPCAPTURE_CANCELCHOOSEDESKTOPMEDIA) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 DesktopCaptureChooseDesktopMediaFunction*> RequestsMap; | 109 DesktopCaptureChooseDesktopMediaFunction*> RequestsMap; |
112 | 110 |
113 RequestsMap requests_; | 111 RequestsMap requests_; |
114 | 112 |
115 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureRequestsRegistry); | 113 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureRequestsRegistry); |
116 }; | 114 }; |
117 | 115 |
118 } // namespace extensions | 116 } // namespace extensions |
119 | 117 |
120 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ | 118 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ |
OLD | NEW |