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

Unified Diff: chrome/renderer/loadtimes_extension_bindings.cc

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/external_host_bindings.cc ('k') | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/loadtimes_extension_bindings.cc
===================================================================
--- chrome/renderer/loadtimes_extension_bindings.cc (revision 22886)
+++ chrome/renderer/loadtimes_extension_bindings.cc (working copy)
@@ -8,10 +8,11 @@
#include "base/time.h"
#include "chrome/renderer/navigation_state.h"
+#include "webkit/api/public/WebFrame.h"
#include "v8/include/v8.h"
-#include "webkit/glue/webframe.h"
using WebKit::WebDataSource;
+using WebKit::WebFrame;
using WebKit::WebNavigationType;
// Values for CSI "tran" property
@@ -94,9 +95,9 @@
}
static v8::Handle<v8::Value> GetLoadTimes(const v8::Arguments& args) {
- WebFrame* frame = WebFrame::RetrieveFrameForEnteredContext();
+ WebFrame* frame = WebFrame::frameForEnteredContext();
if (frame) {
- WebDataSource* data_source = frame->GetDataSource();
+ WebDataSource* data_source = frame->dataSource();
if (data_source) {
NavigationState* navigation_state =
NavigationState::FromDataSource(data_source);
@@ -135,9 +136,9 @@
}
static v8::Handle<v8::Value> GetCSI(const v8::Arguments& args) {
- WebFrame* frame = WebFrame::RetrieveFrameForEnteredContext();
+ WebFrame* frame = WebFrame::frameForEnteredContext();
if (frame) {
- WebDataSource* data_source = frame->GetDataSource();
+ WebDataSource* data_source = frame->dataSource();
if (data_source) {
NavigationState* navigation_state =
NavigationState::FromDataSource(data_source);
« no previous file with comments | « chrome/renderer/external_host_bindings.cc ('k') | chrome/renderer/print_web_view_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698