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_proxy.h" | 5 #include "content/browser/media/media_internals_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/browser/media/media_internals_handler.h" | 9 #include "content/browser/media/media_internals_handler.h" |
10 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
11 #include "content/public/browser/notification_service.h" | 11 #include "content/public/browser/notification_service.h" |
12 #include "content/public/browser/notification_types.h" | 12 #include "content/public/browser/notification_types.h" |
13 #include "content/public/browser/render_process_host.h" | 13 #include "content/public/browser/render_process_host.h" |
14 #include "content/public/browser/web_ui.h" | 14 #include "content/public/browser/web_ui.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 static const int kMediaInternalsProxyEventDelayMilliseconds = 100; | 18 static const int kMediaInternalsProxyEventDelayMilliseconds = 100; |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 const std::string& function, base::Value* args) { | 173 const std::string& function, base::Value* args) { |
174 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 174 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
175 scoped_ptr<base::Value> args_value(args); | 175 scoped_ptr<base::Value> args_value(args); |
176 std::vector<const base::Value*> args_vector; | 176 std::vector<const base::Value*> args_vector; |
177 args_vector.push_back(args_value.get()); | 177 args_vector.push_back(args_value.get()); |
178 string16 update = WebUI::GetJavascriptCall(function, args_vector); | 178 string16 update = WebUI::GetJavascriptCall(function, args_vector); |
179 UpdateUIOnUIThread(update); | 179 UpdateUIOnUIThread(update); |
180 } | 180 } |
181 | 181 |
182 } // namespace content | 182 } // namespace content |
OLD | NEW |