Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / chrome / test / chromedriver / util.h
index 2e618ed..111ced4 100644 (file)
@@ -12,6 +12,7 @@ class FilePath;
 class ListValue;
 }
 
+struct Session;
 class Status;
 class WebView;
 
@@ -39,4 +40,9 @@ Status UnzipSoleFile(const base::FilePath& unzip_dir,
                      const std::string& bytes,
                      base::FilePath* file);
 
+// Calls BeforeCommand for each of |session|'s |CommandListener|s.
+// If an error is encountered, will mark |session| for deletion and return.
+Status NotifyCommandListenersBeforeCommand(Session* session,
+                                           const std::string& command_name);
+
 #endif  // CHROME_TEST_CHROMEDRIVER_UTIL_H_