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

Side by Side Diff: content/renderer/media/android/media_info_loader.h

Issue 17502007: Move webkit/renderer/media/android/ to content/renderer/media/android/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 WEBKIT_RENDERER_MEDIA_MEDIA_INFO_LOADER_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_
6 #define WEBKIT_RENDERER_MEDIA_MEDIA_INFO_LOADER_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "googleurl/src/gurl.h" 13 #include "googleurl/src/gurl.h"
14 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
14 #include "third_party/WebKit/public/web/WebMediaPlayer.h" 15 #include "third_party/WebKit/public/web/WebMediaPlayer.h"
15 #include "third_party/WebKit/public/platform/WebURLLoaderClient.h"
16 #include "webkit/renderer/media/active_loader.h" 16 #include "webkit/renderer/media/active_loader.h"
17 17
18 namespace WebKit { 18 namespace WebKit {
19 class WebFrame; 19 class WebFrame;
20 class WebURLLoader; 20 class WebURLLoader;
21 class WebURLRequest; 21 class WebURLRequest;
22 } 22 }
23 23
24 namespace webkit_media { 24 namespace content {
25 25
26 // This class provides additional information about a media URL. Currently it 26 // This class provides additional information about a media URL. Currently it
27 // can be used to determine if a media URL has a single security origin and 27 // can be used to determine if a media URL has a single security origin and
28 // whether the URL passes a CORS access check. 28 // whether the URL passes a CORS access check.
29 class MediaInfoLoader : private WebKit::WebURLLoaderClient { 29 class MediaInfoLoader : private WebKit::WebURLLoaderClient {
30 public: 30 public:
31 // Status codes for start operations on MediaInfoLoader. 31 // Status codes for start operations on MediaInfoLoader.
32 enum Status { 32 enum Status {
33 // The operation failed, which may have been due to: 33 // The operation failed, which may have been due to:
34 // - Page navigation 34 // - Page navigation
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void didFail( 97 virtual void didFail(
98 WebKit::WebURLLoader* loader, 98 WebKit::WebURLLoader* loader,
99 const WebKit::WebURLError&); 99 const WebKit::WebURLError&);
100 100
101 void DidBecomeReady(Status status); 101 void DidBecomeReady(Status status);
102 102
103 // Injected WebURLLoader instance for testing purposes. 103 // Injected WebURLLoader instance for testing purposes.
104 scoped_ptr<WebKit::WebURLLoader> test_loader_; 104 scoped_ptr<WebKit::WebURLLoader> test_loader_;
105 105
106 // Keeps track of an active WebURLLoader and associated state. 106 // Keeps track of an active WebURLLoader and associated state.
107 scoped_ptr<ActiveLoader> active_loader_; 107 scoped_ptr<webkit_media::ActiveLoader> active_loader_;
108 108
109 bool loader_failed_; 109 bool loader_failed_;
110 GURL url_; 110 GURL url_;
111 WebKit::WebMediaPlayer::CORSMode cors_mode_; 111 WebKit::WebMediaPlayer::CORSMode cors_mode_;
112 bool single_origin_; 112 bool single_origin_;
113 113
114 ReadyCB ready_cb_; 114 ReadyCB ready_cb_;
115 base::TimeTicks start_time_; 115 base::TimeTicks start_time_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(MediaInfoLoader); 117 DISALLOW_COPY_AND_ASSIGN(MediaInfoLoader);
118 }; 118 };
119 119
120 } // namespace webkit_media 120 } // namespace content
121 121
122 #endif // WEBKIT_RENDERER_MEDIA_MEDIA_INFO_LOADER_H_ 122 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_INFO_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698