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

Side by Side Diff: content/browser/web_contents/interstitial_page_impl.cc

Issue 10005049: DomStorage house cleaning (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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) 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/web_contents/interstitial_page_impl.h" 5 #include "content/browser/web_contents/interstitial_page_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/string_util.h" 12 #include "base/string_util.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "base/utf_string_conversions.h" 14 #include "base/utf_string_conversions.h"
15 #include "content/browser/renderer_host/render_process_host_impl.h" 15 #include "content/browser/renderer_host/render_process_host_impl.h"
16 #include "content/browser/renderer_host/render_view_host_impl.h" 16 #include "content/browser/renderer_host/render_view_host_impl.h"
17 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h" 17 #include "content/browser/renderer_host/resource_dispatcher_host_impl.h"
18 #include "content/browser/site_instance_impl.h" 18 #include "content/browser/site_instance_impl.h"
19 #include "content/browser/web_contents/navigation_controller_impl.h" 19 #include "content/browser/web_contents/navigation_controller_impl.h"
20 #include "content/browser/web_contents/navigation_entry_impl.h" 20 #include "content/browser/web_contents/navigation_entry_impl.h"
21 #include "content/browser/web_contents/web_contents_impl.h" 21 #include "content/browser/web_contents/web_contents_impl.h"
22 #include "content/common/dom_storage_common.h"
23 #include "content/common/view_messages.h" 22 #include "content/common/view_messages.h"
24 #include "content/port/browser/render_widget_host_view_port.h" 23 #include "content/port/browser/render_widget_host_view_port.h"
25 #include "content/public/browser/browser_thread.h" 24 #include "content/public/browser/browser_thread.h"
26 #include "content/public/browser/dom_operation_notification_details.h" 25 #include "content/public/browser/dom_operation_notification_details.h"
27 #include "content/public/browser/interstitial_page_delegate.h" 26 #include "content/public/browser/interstitial_page_delegate.h"
28 #include "content/public/browser/invalidate_type.h" 27 #include "content/public/browser/invalidate_type.h"
29 #include "content/public/browser/notification_service.h" 28 #include "content/public/browser/notification_service.h"
30 #include "content/public/browser/notification_source.h" 29 #include "content/public/browser/notification_source.h"
31 #include "content/public/browser/web_contents_view.h" 30 #include "content/public/browser/web_contents_view.h"
32 #include "content/public/common/bindings_policy.h" 31 #include "content/public/common/bindings_policy.h"
33 #include "content/public/common/page_transition_types.h" 32 #include "content/public/common/page_transition_types.h"
34 #include "content/public/common/view_type.h" 33 #include "content/public/common/view_type.h"
35 #include "net/base/escape.h" 34 #include "net/base/escape.h"
36 #include "net/url_request/url_request_context_getter.h" 35 #include "net/url_request/url_request_context_getter.h"
36 #include "webkit/dom_storage/dom_storage_types.h"
37 37
38 using content::BrowserThread; 38 using content::BrowserThread;
39 using content::DomOperationNotificationDetails; 39 using content::DomOperationNotificationDetails;
40 using content::InterstitialPageDelegate; 40 using content::InterstitialPageDelegate;
41 using content::NavigationController; 41 using content::NavigationController;
42 using content::NavigationEntry; 42 using content::NavigationEntry;
43 using content::NavigationEntryImpl; 43 using content::NavigationEntryImpl;
44 using content::RenderViewHost; 44 using content::RenderViewHost;
45 using content::RenderViewHostImpl; 45 using content::RenderViewHostImpl;
46 using content::RenderViewHostDelegate; 46 using content::RenderViewHostDelegate;
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 return tab_->HandleKeyboardEvent(event); 480 return tab_->HandleKeyboardEvent(event);
481 } 481 }
482 482
483 WebContents* InterstitialPageImpl::tab() const { 483 WebContents* InterstitialPageImpl::tab() const {
484 return tab_; 484 return tab_;
485 } 485 }
486 486
487 RenderViewHost* InterstitialPageImpl::CreateRenderViewHost() { 487 RenderViewHost* InterstitialPageImpl::CreateRenderViewHost() {
488 RenderViewHostImpl* render_view_host = new RenderViewHostImpl( 488 RenderViewHostImpl* render_view_host = new RenderViewHostImpl(
489 SiteInstance::Create(tab()->GetBrowserContext()), 489 SiteInstance::Create(tab()->GetBrowserContext()),
490 this, MSG_ROUTING_NONE, kInvalidSessionStorageNamespaceId); 490 this, MSG_ROUTING_NONE, dom_storage::kInvalidSessionStorageNamespaceId);
491 return render_view_host; 491 return render_view_host;
492 } 492 }
493 493
494 WebContentsView* InterstitialPageImpl::CreateWebContentsView() { 494 WebContentsView* InterstitialPageImpl::CreateWebContentsView() {
495 if (!create_view_) 495 if (!create_view_)
496 return NULL; 496 return NULL;
497 WebContentsView* web_contents_view = tab()->GetView(); 497 WebContentsView* web_contents_view = tab()->GetView();
498 RenderWidgetHostView* view = 498 RenderWidgetHostView* view =
499 web_contents_view->CreateViewForWidget(render_view_host_); 499 web_contents_view->CreateViewForWidget(render_view_host_);
500 render_view_host_->SetView(view); 500 render_view_host_->SetView(view);
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 if (!tab->GetViewDelegate()) 741 if (!tab->GetViewDelegate())
742 return; 742 return;
743 743
744 tab->GetViewDelegate()->TakeFocus(reverse); 744 tab->GetViewDelegate()->TakeFocus(reverse);
745 } 745 }
746 746
747 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply( 747 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply(
748 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 748 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
749 int active_match_ordinal, bool final_update) { 749 int active_match_ordinal, bool final_update) {
750 } 750 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.cc ('k') | content/common/dom_storage_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698