Index: components/favicon/content/favicon_driver.h |
diff --git a/components/favicon/content/favicon_driver.h b/components/favicon/content/favicon_driver.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a3696a7119900473accc2f655e7b47978bc79189 |
--- /dev/null |
+++ b/components/favicon/content/favicon_driver.h |
@@ -0,0 +1,26 @@ |
+// 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_FAVICON_CONTENT_FAVICON_DRIVER_H_ |
+#define COMPONENTS_FAVICON_CONTENT_FAVICON_DRIVER_H_ |
+ |
+#include "base/macros.h" |
+ |
+class Profile; |
+ |
+// Interface that allows Favicon core code to interact with its driver |
+// (i.e., obtain information from it and give information to it). |
+class FaviconDriver { |
+ public: |
+ FaviconDriver() {} |
+ virtual ~FaviconDriver() {} |
+ |
+ // Returns whether the user is operating in an off-the-record context. |
+ virtual bool IsOffTheRecord() = 0; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(FaviconDriver); |
+}; |
+ |
+#endif // COMPONENTS_FAVICON_CONTENT_FAVICON_DRIVER_H_ |