Chromium Code Reviews| Index: components/google/core/browser/google_url_tracker_client.h |
| diff --git a/components/google/core/browser/google_url_tracker_client.h b/components/google/core/browser/google_url_tracker_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4ef6352430334d25da77f5e282339f4712ef1079 |
| --- /dev/null |
| +++ b/components/google/core/browser/google_url_tracker_client.h |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |
| +#define COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |
| + |
| +class GoogleURLTracker; |
| + |
| +// 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.
|
| +class GoogleURLTrackerClient { |
| + public: |
| + virtual ~GoogleURLTrackerClient() {} |
| + |
| + // Sets the GoogleURLTracker that is associated with this client. |
| + virtual void SetGoogleURLTracker(GoogleURLTracker* tracker) = 0; |
| + |
| + // Enables or disables listening for navigation starts. OnNavigationPending |
| + // will be called for each navigation start if listening is enabled. |
| + virtual void SetListeningForNavigationStart(bool listen) = 0; |
| + |
| + // Returns whether or not the client is currently listening for navigation |
| + // starts. |
| + virtual bool IsListeningForNavigationStart() = 0; |
| +}; |
| + |
| +#endif // COMPONENTS_GOOGLE_GOOGLE_URL_TRACKER_CLIENT_H_ |