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

Side by Side Diff: chrome/browser/chromeos/media/media_player.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version for commit (merged again). Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/media/media_player.h" 5 #include "chrome/browser/chromeos/media/media_player.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 19 matching lines...) Expand all
30 #include "chrome/browser/ui/browser_window.h" 30 #include "chrome/browser/ui/browser_window.h"
31 #include "chrome/browser/ui/webui/favicon_source.h" 31 #include "chrome/browser/ui/webui/favicon_source.h"
32 #include "chrome/common/chrome_notification_types.h" 32 #include "chrome/common/chrome_notification_types.h"
33 #include "chrome/common/chrome_paths.h" 33 #include "chrome/common/chrome_paths.h"
34 #include "chrome/common/chrome_switches.h" 34 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/jstemplate_builder.h" 35 #include "chrome/common/jstemplate_builder.h"
36 #include "chrome/common/time_format.h" 36 #include "chrome/common/time_format.h"
37 #include "chrome/common/url_constants.h" 37 #include "chrome/common/url_constants.h"
38 #include "content/browser/download/download_manager.h" 38 #include "content/browser/download/download_manager.h"
39 #include "content/browser/tab_contents/tab_contents.h" 39 #include "content/browser/tab_contents/tab_contents.h"
40 #include "content/browser/user_metrics.h"
41 #include "content/public/browser/browser_thread.h" 40 #include "content/public/browser/browser_thread.h"
41 #include "content/public/browser/user_metrics.h"
42 #include "grit/browser_resources.h" 42 #include "grit/browser_resources.h"
43 #include "grit/chromium_strings.h" 43 #include "grit/chromium_strings.h"
44 #include "grit/generated_resources.h" 44 #include "grit/generated_resources.h"
45 #include "grit/locale_settings.h" 45 #include "grit/locale_settings.h"
46 #include "net/base/escape.h" 46 #include "net/base/escape.h"
47 #include "net/base/load_flags.h" 47 #include "net/base/load_flags.h"
48 #include "net/url_request/url_request_job.h" 48 #include "net/url_request/url_request_job.h"
49 #include "ui/base/resource/resource_bundle.h" 49 #include "ui/base/resource/resource_bundle.h"
50 50
51 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK) 51 #if defined(OS_CHROMEOS) && defined(TOOLKIT_USES_GTK)
52 #include "chrome/browser/chromeos/frame/panel_browser_view.h" 52 #include "chrome/browser/chromeos/frame/panel_browser_view.h"
53 #endif 53 #endif
54 54
55 using content::BrowserThread; 55 using content::BrowserThread;
56 using content::UserMetricsAction;
56 57
57 static const char* kMediaPlayerAppName = "mediaplayer"; 58 static const char* kMediaPlayerAppName = "mediaplayer";
58 static const int kPopupLeft = 0; 59 static const int kPopupLeft = 0;
59 static const int kPopupTop = 0; 60 static const int kPopupTop = 0;
60 static const int kPopupWidth = 350; 61 static const int kPopupWidth = 350;
61 static const int kPopupHeight = 300; 62 static const int kPopupHeight = 300;
62 63
63 const MediaPlayer::UrlVector& MediaPlayer::GetPlaylist() const { 64 const MediaPlayer::UrlVector& MediaPlayer::GetPlaylist() const {
64 return current_playlist_; 65 return current_playlist_;
65 } 66 }
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 300
300 MediaPlayer::MediaPlayer() 301 MediaPlayer::MediaPlayer()
301 : current_position_(0), 302 : current_position_(0),
302 pending_playback_request_(false), 303 pending_playback_request_(false),
303 playlist_browser_(NULL), 304 playlist_browser_(NULL),
304 mediaplayer_browser_(NULL) { 305 mediaplayer_browser_(NULL) {
305 for (size_t i = 0; i < arraysize(supported_mime_type_list); ++i) { 306 for (size_t i = 0; i < arraysize(supported_mime_type_list); ++i) {
306 supported_mime_types_.insert(supported_mime_type_list[i]); 307 supported_mime_types_.insert(supported_mime_type_list[i]);
307 } 308 }
308 }; 309 };
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screen_locker_views.cc ('k') | chrome/browser/chromeos/status/input_method_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698