OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/media/media_internals.h" | 5 #include "content/browser/media/media_internals.h" |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "base/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
11 #include "content/public/browser/web_ui.h" | 11 #include "content/public/browser/web_ui.h" |
12 #include "media/base/media_log.h" | 12 #include "media/base/media_log.h" |
13 #include "media/base/media_log_event.h" | 13 #include "media/base/media_log_event.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 MediaInternals* MediaInternals::GetInstance() { | 17 MediaInternals* MediaInternals::GetInstance() { |
18 return Singleton<MediaInternals>::get(); | 18 return Singleton<MediaInternals>::get(); |
19 } | 19 } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 return; | 122 return; |
123 | 123 |
124 std::vector<const base::Value*> args; | 124 std::vector<const base::Value*> args; |
125 args.push_back(value); | 125 args.push_back(value); |
126 string16 update = WebUI::GetJavascriptCall(function, args); | 126 string16 update = WebUI::GetJavascriptCall(function, args); |
127 for (size_t i = 0; i < update_callbacks_.size(); i++) | 127 for (size_t i = 0; i < update_callbacks_.size(); i++) |
128 update_callbacks_[i].Run(update); | 128 update_callbacks_[i].Run(update); |
129 } | 129 } |
130 | 130 |
131 } // namespace content | 131 } // namespace content |
OLD | NEW |