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

Side by Side Diff: chrome/browser/extensions/extension_host.cc

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/extensions/extension_host.h" 5 #include "chrome/browser/extensions/extension_host.h"
6 6
7 #include <list> 7 #include <list>
8 8
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 DCHECK_EQ(render_view_host_, render_view_host); 327 DCHECK_EQ(render_view_host_, render_view_host);
328 NotificationService::current()->Notify( 328 NotificationService::current()->Notify(
329 chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED, 329 chrome::NOTIFICATION_EXTENSION_PROCESS_TERMINATED,
330 Source<Profile>(profile_), 330 Source<Profile>(profile_),
331 Details<ExtensionHost>(this)); 331 Details<ExtensionHost>(this));
332 } 332 }
333 333
334 void ExtensionHost::DidNavigate(RenderViewHost* render_view_host, 334 void ExtensionHost::DidNavigate(RenderViewHost* render_view_host,
335 const ViewHostMsg_FrameNavigate_Params& params) { 335 const ViewHostMsg_FrameNavigate_Params& params) {
336 // We only care when the outer frame changes. 336 // We only care when the outer frame changes.
337 if (!PageTransition::IsMainFrame(params.transition)) 337 if (!content::PageTransitionIsMainFrame(params.transition))
338 return; 338 return;
339 339
340 url_ = params.url; 340 url_ = params.url;
341 } 341 }
342 342
343 void ExtensionHost::InsertInfobarCSS() { 343 void ExtensionHost::InsertInfobarCSS() {
344 DCHECK(!is_background_page()); 344 DCHECK(!is_background_page());
345 345
346 static const base::StringPiece css( 346 static const base::StringPiece css(
347 ResourceBundle::GetSharedInstance().GetRawDataResource( 347 ResourceBundle::GetSharedInstance().GetRawDataResource(
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) { 794 void ExtensionHost::RenderViewCreated(RenderViewHost* render_view_host) {
795 if (view_.get()) 795 if (view_.get())
796 view_->RenderViewCreated(); 796 view_->RenderViewCreated();
797 797
798 if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP || 798 if (extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_POPUP ||
799 extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) { 799 extension_host_type_ == chrome::VIEW_TYPE_EXTENSION_INFOBAR) {
800 render_view_host->EnablePreferredSizeMode( 800 render_view_host->EnablePreferredSizeMode(
801 kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow); 801 kPreferredSizeWidth | kPreferredSizeHeightThisIsSlow);
802 } 802 }
803 } 803 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_history_api.cc ('k') | chrome/browser/extensions/extension_process_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698