| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/renderer/render_view.h" | 5 #include "chrome/renderer/render_view.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 const int kDefaultDelaySecondsForFormStateSync = 5; | 130 const int kDefaultDelaySecondsForFormStateSync = 5; |
| 131 | 131 |
| 132 // The next available page ID to use. This ensures that the page IDs are | 132 // The next available page ID to use. This ensures that the page IDs are |
| 133 // globally unique in the renderer. | 133 // globally unique in the renderer. |
| 134 static int32 next_page_id_ = 1; | 134 static int32 next_page_id_ = 1; |
| 135 | 135 |
| 136 // The maximum number of popups that can be spawned from one page. | 136 // The maximum number of popups that can be spawned from one page. |
| 137 static const int kMaximumNumberOfUnacknowledgedPopups = 25; | 137 static const int kMaximumNumberOfUnacknowledgedPopups = 25; |
| 138 | 138 |
| 139 static const char* const kUnreachableWebDataURL = | 139 static const char* const kUnreachableWebDataURL = |
| 140 "chrome-ui://chromewebdata/"; | 140 "chrome://chromewebdata/"; |
| 141 | 141 |
| 142 static const char* const kBackForwardNavigationScheme = "history"; | 142 static const char* const kBackForwardNavigationScheme = "history"; |
| 143 | 143 |
| 144 namespace { | 144 namespace { |
| 145 | 145 |
| 146 // Associated with browser-initiated navigations to hold tracking data. | 146 // Associated with browser-initiated navigations to hold tracking data. |
| 147 class RenderViewExtraRequestData : public WebRequest::ExtraData { | 147 class RenderViewExtraRequestData : public WebRequest::ExtraData { |
| 148 public: | 148 public: |
| 149 RenderViewExtraRequestData(int32 pending_page_id, | 149 RenderViewExtraRequestData(int32 pending_page_id, |
| 150 PageTransition::Type transition, | 150 PageTransition::Type transition, |
| (...skipping 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2980 } | 2980 } |
| 2981 } | 2981 } |
| 2982 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc); | 2982 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinishDoc", start_to_finish_doc); |
| 2983 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish); | 2983 UMA_HISTOGRAM_TIMES("Renderer.All.FinishDocToFinish", finish_doc_to_finish); |
| 2984 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish); | 2984 UMA_HISTOGRAM_TIMES("Renderer.All.StartToFinish", start_to_finish); |
| 2985 if (start_to_first_layout.ToInternalValue() >= 0) { | 2985 if (start_to_first_layout.ToInternalValue() >= 0) { |
| 2986 UMA_HISTOGRAM_TIMES( | 2986 UMA_HISTOGRAM_TIMES( |
| 2987 "Renderer.All.StartToFirstLayout", start_to_first_layout); | 2987 "Renderer.All.StartToFirstLayout", start_to_first_layout); |
| 2988 } | 2988 } |
| 2989 } | 2989 } |
| OLD | NEW |