Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | |
| 6 #define COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | |
| 7 | |
| 8 class GoogleURLTracker; | |
| 9 | |
| 10 // Interface via which GoogleURLTracker communicates with its embedder. | |
|
Peter Kasting
2014/05/14 23:30:28
Nit: via -> by
blundell
2014/05/15 07:58:03
Done.
| |
| 11 class GoogleURLTrackerClient { | |
| 12 public: | |
| 13 virtual ~GoogleURLTrackerClient() {} | |
| 14 | |
| 15 // Sets the GoogleURLTracker that is associated with this client. | |
| 16 virtual void SetGoogleURLTracker(GoogleURLTracker* tracker) = 0; | |
| 17 | |
| 18 // Enables or disables listening for navigation starts. OnNavigationPending | |
| 19 // will be called for each navigation start if listening is enabled. | |
| 20 virtual void SetListeningForNavigationStart(bool listen) = 0; | |
| 21 | |
| 22 // Returns whether or not the client is currently listening for navigation | |
| 23 // starts. | |
| 24 virtual bool IsListeningForNavigationStart() = 0; | |
| 25 }; | |
| 26 | |
| 27 #endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ | |
| OLD | NEW |