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

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

Issue 257153003: We have a problem in the process on destroying WebContentsImpl because (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebased onto origin/master again, resolved conflicts 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
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RunAsync() OVERRIDE; 52 virtual bool RunAsync() 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698