Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / predictors / autocomplete_action_predictor.h
index 4559244..c80eae6 100644 (file)
@@ -12,8 +12,8 @@
 #include "base/memory/scoped_ptr.h"
 #include "base/memory/weak_ptr.h"
 #include "base/strings/string16.h"
-#include "chrome/browser/history/history_types.h"
 #include "chrome/browser/predictors/autocomplete_action_predictor_table.h"
+#include "components/history/core/browser/history_types.h"
 #include "components/keyed_service/core/keyed_service.h"
 #include "content/public/browser/navigation_controller.h"
 #include "content/public/browser/notification_observer.h"
@@ -101,10 +101,17 @@ class AutocompleteActionPredictor
       const content::SessionStorageNamespaceMap& session_storage_namespace_map,
       const gfx::Size& size);
 
+  // Cancels the current prerender, unless it has already been abandoned.
+  void CancelPrerender();
+
   // Return true if the suggestion type warrants a TCP/IP preconnection.
   // i.e., it is now quite likely that the user will select the related domain.
   static bool IsPreconnectable(const AutocompleteMatch& match);
 
+  // Returns true if there is an active Omnibox prerender and it has been
+  // abandoned.
+  bool IsPrerenderAbandonedForTesting();
+
  private:
   friend class AutocompleteActionPredictorTest;
   friend class ::PredictorsHandler;