| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 | 45 |
| 46 void Cancel(); | 46 void Cancel(); |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 virtual ~DesktopCaptureChooseDesktopMediaFunction(); | 49 virtual ~DesktopCaptureChooseDesktopMediaFunction(); |
| 50 | 50 |
| 51 // ExtensionFunction overrides. | 51 // ExtensionFunction overrides. |
| 52 virtual bool RunImpl() OVERRIDE; | 52 virtual bool RunImpl() OVERRIDE; |
| 53 | 53 |
| 54 // content::WebContentsObserver overrides. | 54 // content::WebContentsObserver overrides. |
| 55 virtual void WebContentsDestroyed( | 55 virtual void WebContentsDestroyed() OVERRIDE; |
| 56 content::WebContents* web_contents) OVERRIDE; | |
| 57 | 56 |
| 58 void OnPickerDialogResults(content::DesktopMediaID source); | 57 void OnPickerDialogResults(content::DesktopMediaID source); |
| 59 | 58 |
| 60 int request_id_; | 59 int request_id_; |
| 61 | 60 |
| 62 // Parameters of the tab the stream is requested for. | 61 // Parameters of the tab the stream is requested for. |
| 63 int render_process_id_; | 62 int render_process_id_; |
| 64 int render_view_id_; | 63 int render_view_id_; |
| 65 GURL origin_; | 64 GURL origin_; |
| 66 | 65 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 DesktopCaptureChooseDesktopMediaFunction*> RequestsMap; | 111 DesktopCaptureChooseDesktopMediaFunction*> RequestsMap; |
| 113 | 112 |
| 114 RequestsMap requests_; | 113 RequestsMap requests_; |
| 115 | 114 |
| 116 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureRequestsRegistry); | 115 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureRequestsRegistry); |
| 117 }; | 116 }; |
| 118 | 117 |
| 119 } // namespace extensions | 118 } // namespace extensions |
| 120 | 119 |
| 121 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ | 120 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ |
| OLD | NEW |