Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: headless/public/web_frame.h

Issue 1461693003: [headless] Initial skeleton of headless/public/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Pure virtual indeed Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: headless/public/web_frame.h
diff --git a/headless/public/web_frame.h b/headless/public/web_frame.h
new file mode 100644
index 0000000000000000000000000000000000000000..2d1b6bbfe5de1a908158004dc4c5d7e10a0fcc17
--- /dev/null
+++ b/headless/public/web_frame.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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 HEADLESS_PUBLIC_WEB_FRAME_H_
+#define HEADLESS_PUBLIC_WEB_FRAME_H_
+
+#include <vector>
+
+#include "base/callback.h"
+#include "headless/public/headless_export.h"
+
+namespace headless {
+
+class WebDocument;
+
+class HEADLESS_EXPORT WebFrame {
+ public:
+ virtual ~WebFrame();
alex clarke (OOO till 29th) 2015/11/19 18:17:54 Can we not implement this destructor inline?
altimin 2015/11/19 18:36:24 Done.
+
+ virtual WebDocument document() = 0;
+
+ // TODO(altimin): return a script execution result.
+ virtual void ExecuteScript(const std::string& source_code) = 0;
+};
+
+} // namespace headless
+
+#endif // HEADLESS_PUBLIC_WEB_FRAME_H_

Powered by Google App Engine
This is Rietveld 408576698