| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/ui/search/instant_ntp.h" | 5 #include "chrome/browser/ui/search/instant_ntp.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "chrome/browser/search/search.h" | 8 #include "chrome/browser/search/search.h" |
| 9 #include "chrome/browser/ui/search/search_tab_helper.h" | 9 #include "chrome/browser/ui/search/search_tab_helper.h" |
| 10 #include "content/public/browser/navigation_details.h" | 10 #include "content/public/browser/navigation_details.h" |
| 11 #include "content/public/browser/navigation_entry.h" | 11 #include "content/public/browser/navigation_entry.h" |
| 12 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
| 13 #include "content/public/browser/web_contents_observer.h" | 13 #include "content/public/browser/web_contents_observer.h" |
| 14 #include "content/public/browser/web_contents_user_data.h" | 14 #include "content/public/browser/web_contents_user_data.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 // Helper class for logging data from the NTP. Attached to each InstantNTP | 19 // Helper class for logging data from the NTP. Attached to each InstantNTP |
| 20 // instance. | 20 // instance. |
| 21 class NTPLoggingUserData | 21 class NTPLoggingUserData |
| 22 : public content::WebContentsObserver, | 22 : public content::WebContentsObserver, |
| 23 public content::WebContentsUserData<NTPLoggingUserData> { | 23 public content::WebContentsUserData<NTPLoggingUserData> { |
| 24 public: | 24 public: |
| 25 virtual ~NTPLoggingUserData() {} | 25 virtual ~NTPLoggingUserData() {} |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 } | 139 } |
| 140 | 140 |
| 141 content::WebContents* InstantNTP::OpenURLFromTab( | 141 content::WebContents* InstantNTP::OpenURLFromTab( |
| 142 content::WebContents* source, | 142 content::WebContents* source, |
| 143 const content::OpenURLParams& params) { | 143 const content::OpenURLParams& params) { |
| 144 return NULL; | 144 return NULL; |
| 145 } | 145 } |
| 146 | 146 |
| 147 void InstantNTP::LoadCompletedMainFrame() { | 147 void InstantNTP::LoadCompletedMainFrame() { |
| 148 } | 148 } |
| OLD | NEW |