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

Side by Side Diff: chrome/browser/ui/webui/media/media_internals_handler.cc

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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) 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/ui/webui/media/media_internals_handler.h" 5 #include "chrome/browser/ui/webui/media/media_internals_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 20 matching lines...) Expand all
31 base::Bind(&MediaInternalsMessageHandler::OnGetEverything, 31 base::Bind(&MediaInternalsMessageHandler::OnGetEverything,
32 base::Unretained(this))); 32 base::Unretained(this)));
33 } 33 }
34 34
35 void MediaInternalsMessageHandler::OnGetEverything(const ListValue* list) { 35 void MediaInternalsMessageHandler::OnGetEverything(const ListValue* list) {
36 proxy_->GetEverything(); 36 proxy_->GetEverything();
37 } 37 }
38 38
39 void MediaInternalsMessageHandler::OnUpdate(const string16& update) { 39 void MediaInternalsMessageHandler::OnUpdate(const string16& update) {
40 // Don't try to execute JavaScript in a RenderView that no longer exists. 40 // Don't try to execute JavaScript in a RenderView that no longer exists.
41 RenderViewHost* host = web_ui()->GetWebContents()->GetRenderViewHost(); 41 content::RenderViewHost* host =
42 web_ui()->GetWebContents()->GetRenderViewHost();
42 if (host) 43 if (host)
43 host->ExecuteJavascriptInWebFrame(string16(), update); 44 host->ExecuteJavascriptInWebFrame(string16(), update);
44 } 45 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/html_dialog_ui.cc ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698