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

Side by Side Diff: chrome/browser/extensions/api/desktop_capture/desktop_capture_api.h

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 static void SetPickerFactoryForTests(PickerFactory* factory); 42 static void SetPickerFactoryForTests(PickerFactory* factory);
43 43
44 DesktopCaptureChooseDesktopMediaFunction(); 44 DesktopCaptureChooseDesktopMediaFunction();
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 RunAsync() OVERRIDE;
53 53
54 // content::WebContentsObserver overrides. 54 // content::WebContentsObserver overrides.
55 virtual void WebContentsDestroyed( 55 virtual void WebContentsDestroyed(
56 content::WebContents* web_contents) OVERRIDE; 56 content::WebContents* web_contents) OVERRIDE;
57 57
58 void OnPickerDialogResults(content::DesktopMediaID source); 58 void OnPickerDialogResults(content::DesktopMediaID source);
59 59
60 int request_id_; 60 int request_id_;
61 61
62 // Parameters of the tab the stream is requested for. 62 // Parameters of the tab the stream is requested for.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 DesktopCaptureChooseDesktopMediaFunction*> RequestsMap; 112 DesktopCaptureChooseDesktopMediaFunction*> RequestsMap;
113 113
114 RequestsMap requests_; 114 RequestsMap requests_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureRequestsRegistry); 116 DISALLOW_COPY_AND_ASSIGN(DesktopCaptureRequestsRegistry);
117 }; 117 };
118 118
119 } // namespace extensions 119 } // namespace extensions
120 120
121 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_ 121 #endif // CHROME_BROWSER_EXTENSIONS_API_DESKTOP_CAPTURE_DESKTOP_CAPTURE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698