| 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/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" | 
| 6 | 6 | 
| 7 #include <set> | 7 #include <set> | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <utility> | 9 #include <utility> | 
| 10 #include <vector> | 10 #include <vector> | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 52 #include "content/public/common/url_constants.h" | 52 #include "content/public/common/url_constants.h" | 
| 53 #include "net/base/net_util.h" | 53 #include "net/base/net_util.h" | 
| 54 #include "net/url_request/url_request_context_getter.h" | 54 #include "net/url_request/url_request_context_getter.h" | 
| 55 #include "third_party/skia/include/core/SkBitmap.h" | 55 #include "third_party/skia/include/core/SkBitmap.h" | 
| 56 #include "ui/gfx/native_widget_types.h" | 56 #include "ui/gfx/native_widget_types.h" | 
| 57 #include "webkit/fileapi/isolated_context.h" | 57 #include "webkit/fileapi/isolated_context.h" | 
| 58 #include "webkit/glue/webaccessibility.h" | 58 #include "webkit/glue/webaccessibility.h" | 
| 59 #include "webkit/glue/webdropdata.h" | 59 #include "webkit/glue/webdropdata.h" | 
| 60 | 60 | 
| 61 using base::TimeDelta; | 61 using base::TimeDelta; | 
|  | 62 using content::BrowserContext; | 
| 62 using content::BrowserMessageFilter; | 63 using content::BrowserMessageFilter; | 
| 63 using content::BrowserThread; | 64 using content::BrowserThread; | 
| 64 using content::DomOperationNotificationDetails; | 65 using content::DomOperationNotificationDetails; | 
| 65 using content::RenderViewHostDelegate; | 66 using content::RenderViewHostDelegate; | 
| 66 using content::SiteInstance; | 67 using content::SiteInstance; | 
| 67 using content::UserMetricsAction; | 68 using content::UserMetricsAction; | 
| 68 using WebKit::WebConsoleMessage; | 69 using WebKit::WebConsoleMessage; | 
| 69 using WebKit::WebDragOperation; | 70 using WebKit::WebDragOperation; | 
| 70 using WebKit::WebDragOperationNone; | 71 using WebKit::WebDragOperationNone; | 
| 71 using WebKit::WebDragOperationsMask; | 72 using WebKit::WebDragOperationsMask; | 
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 129       is_waiting_for_unload_ack_(false), | 130       is_waiting_for_unload_ack_(false), | 
| 130       unload_ack_is_for_cross_site_transition_(false), | 131       unload_ack_is_for_cross_site_transition_(false), | 
| 131       are_javascript_messages_suppressed_(false), | 132       are_javascript_messages_suppressed_(false), | 
| 132       sudden_termination_allowed_(false), | 133       sudden_termination_allowed_(false), | 
| 133       session_storage_namespace_(session_storage), | 134       session_storage_namespace_(session_storage), | 
| 134       save_accessibility_tree_for_testing_(false), | 135       save_accessibility_tree_for_testing_(false), | 
| 135       send_accessibility_updated_notifications_(false), | 136       send_accessibility_updated_notifications_(false), | 
| 136       render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) { | 137       render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) { | 
| 137   if (!session_storage_namespace_) { | 138   if (!session_storage_namespace_) { | 
| 138     session_storage_namespace_ = new SessionStorageNamespace( | 139     session_storage_namespace_ = new SessionStorageNamespace( | 
| 139         process()->GetBrowserContext()->GetWebKitContext()); | 140         BrowserContext::GetWebKitContext(process()->GetBrowserContext())); | 
| 140   } | 141   } | 
| 141 | 142 | 
| 142   DCHECK(instance_); | 143   DCHECK(instance_); | 
| 143   CHECK(delegate_);  // http://crbug.com/82827 | 144   CHECK(delegate_);  // http://crbug.com/82827 | 
| 144 | 145 | 
| 145   process()->EnableSendQueue(); | 146   process()->EnableSendQueue(); | 
| 146 | 147 | 
| 147   content::GetContentClient()->browser()->RenderViewHostCreated(this); | 148   content::GetContentClient()->browser()->RenderViewHostCreated(this); | 
| 148 | 149 | 
| 149   content::NotificationService::current()->Notify( | 150   content::NotificationService::current()->Notify( | 
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1590   // Whenever we change swap out state, we should not be waiting for | 1591   // Whenever we change swap out state, we should not be waiting for | 
| 1591   // beforeunload or unload acks.  We clear them here to be safe, since they | 1592   // beforeunload or unload acks.  We clear them here to be safe, since they | 
| 1592   // can cause navigations to be ignored in OnMsgNavigate. | 1593   // can cause navigations to be ignored in OnMsgNavigate. | 
| 1593   is_waiting_for_beforeunload_ack_ = false; | 1594   is_waiting_for_beforeunload_ack_ = false; | 
| 1594   is_waiting_for_unload_ack_ = false; | 1595   is_waiting_for_unload_ack_ = false; | 
| 1595 } | 1596 } | 
| 1596 | 1597 | 
| 1597 void RenderViewHost::ClearPowerSaveBlockers() { | 1598 void RenderViewHost::ClearPowerSaveBlockers() { | 
| 1598   STLDeleteValues(&power_save_blockers_); | 1599   STLDeleteValues(&power_save_blockers_); | 
| 1599 } | 1600 } | 
| OLD | NEW | 
|---|