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

Side by Side Diff: content/browser/media/capture/web_contents_tracker.h

Issue 172003004: Fixit: Move tab and desktop capture code to new location. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 10 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // Given a starting render_process_id and render_view_id, the WebContentsTracker 5 // Given a starting render_process_id and render_view_id, the WebContentsTracker
6 // tracks RenderViewHost instance swapping during the lifetime of a WebContents 6 // tracks RenderViewHost instance swapping during the lifetime of a WebContents
7 // instance. This is used when mirroring tab video and audio so that user 7 // instance. This is used when mirroring tab video and audio so that user
8 // navigations, crashes, etc., during a tab's lifetime allow the capturing code 8 // navigations, crashes, etc., during a tab's lifetime allow the capturing code
9 // to remain active on the current/latest RenderView. 9 // to remain active on the current/latest RenderView.
10 // 10 //
11 // Threading issues: Start(), Stop() and the ChangeCallback are invoked on the 11 // Threading issues: Start(), Stop() and the ChangeCallback are invoked on the
12 // same thread. This can be any thread, and the decision is locked-in by 12 // same thread. This can be any thread, and the decision is locked-in by
13 // WebContentsTracker when Start() is called. 13 // WebContentsTracker when Start() is called.
14 14
15 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_TRACKER_H_ 15 #ifndef CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_TRACKER_H_
16 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_TRACKER_H_ 16 #define CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_TRACKER_H_
17 17
18 #include "base/callback.h" 18 #include "base/callback.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "content/common/content_export.h" 20 #include "content/common/content_export.h"
21 #include "content/public/browser/web_contents_observer.h" 21 #include "content/public/browser/web_contents_observer.h"
22 22
23 namespace base { 23 namespace base {
24 class MessageLoopProxy; 24 class MessageLoopProxy;
25 } 25 }
26 26
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE; 76 virtual void WebContentsDestroyed(WebContents* web_contents) OVERRIDE;
77 77
78 scoped_refptr<base::MessageLoopProxy> message_loop_; 78 scoped_refptr<base::MessageLoopProxy> message_loop_;
79 ChangeCallback callback_; 79 ChangeCallback callback_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(WebContentsTracker); 81 DISALLOW_COPY_AND_ASSIGN(WebContentsTracker);
82 }; 82 };
83 83
84 } // namespace content 84 } // namespace content
85 85
86 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_WEB_CONTENTS_TRACKER_H_ 86 #endif // CONTENT_BROWSER_MEDIA_CAPTURE_WEB_CONTENTS_TRACKER_H_
OLDNEW
« no previous file with comments | « content/browser/media/capture/web_contents_capture_util.cc ('k') | content/browser/media/capture/web_contents_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698