summaryrefslogtreecommitdiffstats
path: root/mandoline
diff options
context:
space:
mode:
authorjam <jam@chromium.org>2015-04-27 15:12:08 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-27 22:12:13 +0000
commit731d868b22da5daf27bdbbf60bcad7e994c6f036 (patch)
tree86a4eb766370198fd024bfe220e82b86db6f4f57 /mandoline
parent5348e920f4119aff9a4eb76c0965725dc85a66cc (diff)
downloadchromium_src-731d868b22da5daf27bdbbf60bcad7e994c6f036.zip
chromium_src-731d868b22da5daf27bdbbf60bcad7e994c6f036.tar.gz
chromium_src-731d868b22da5daf27bdbbf60bcad7e994c6f036.tar.bz2
Move NavigatorHost interface to mandoline.
Also remove third_party\mojo_services\src\http_server which is unused. BUG=479353 Review URL: https://codereview.chromium.org/1109943002 Cr-Commit-Position: refs/heads/master@{#327153}
Diffstat (limited to 'mandoline')
-rw-r--r--mandoline/services/navigation/public/interfaces/BUILD.gn16
-rw-r--r--mandoline/services/navigation/public/interfaces/navigation.mojom29
2 files changed, 45 insertions, 0 deletions
diff --git a/mandoline/services/navigation/public/interfaces/BUILD.gn b/mandoline/services/navigation/public/interfaces/BUILD.gn
new file mode 100644
index 0000000..9c495d4
--- /dev/null
+++ b/mandoline/services/navigation/public/interfaces/BUILD.gn
@@ -0,0 +1,16 @@
+# 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.
+
+import("//build/module_args/mojo.gni")
+import("$mojo_sdk_root/mojo/public/tools/bindings/mojom.gni")
+
+mojom("interfaces") {
+ sources = [
+ "navigation.mojom",
+ ]
+
+ deps = [
+ "//mojo/services/network/public/interfaces",
+ ]
+}
diff --git a/mandoline/services/navigation/public/interfaces/navigation.mojom b/mandoline/services/navigation/public/interfaces/navigation.mojom
new file mode 100644
index 0000000..b461a2b
--- /dev/null
+++ b/mandoline/services/navigation/public/interfaces/navigation.mojom
@@ -0,0 +1,29 @@
+// 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.
+
+module mojo;
+
+import "network/public/interfaces/url_loader.mojom";
+
+// Expresses a preference for where a navigation will be performed.
+enum Target {
+ // No preference
+ DEFAULT,
+
+ // In the same ViewManager node that the navigation was initiated
+ SOURCE_NODE,
+
+ // In a new ViewManager node
+ NEW_NODE
+};
+
+// Embedders that support navigation of implement this interface.
+interface NavigatorHost {
+ RequestNavigate(Target target, URLRequest request);
+ RequestNavigateHistory(int32 delta);
+
+ // Applications call this to inform hosts of navigations they performed
+ // locally. For example, pushState() navigations in an HTML application.
+ DidNavigateLocally(string url);
+};