| 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 "chrome/browser/google/google_search_counter.h" | 5 #include "chrome/browser/google/google_search_counter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/google/google_util.h" | 8 #include "components/google/core/browser/google_util.h" |
| 9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.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/notification_service.h" | 12 #include "content/public/browser/notification_service.h" |
| 13 #include "content/public/browser/notification_types.h" | 13 #include "content/public/browser/notification_types.h" |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 // Returns true iff |entry| represents a Google search from the Omnibox. | 17 // Returns true iff |entry| represents a Google search from the Omnibox. |
| 18 // This method assumes that we have already verified that |entry|'s URL is a | 18 // This method assumes that we have already verified that |entry|'s URL is a |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 const content::NotificationSource& source, | 96 const content::NotificationSource& source, |
| 97 const content::NotificationDetails& details) { | 97 const content::NotificationDetails& details) { |
| 98 switch (type) { | 98 switch (type) { |
| 99 case content::NOTIFICATION_NAV_ENTRY_COMMITTED: | 99 case content::NOTIFICATION_NAV_ENTRY_COMMITTED: |
| 100 ProcessCommittedEntry(source, details); | 100 ProcessCommittedEntry(source, details); |
| 101 break; | 101 break; |
| 102 default: | 102 default: |
| 103 NOTREACHED(); | 103 NOTREACHED(); |
| 104 } | 104 } |
| 105 } | 105 } |
| OLD | NEW |