1 // Copyright 2014 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.content_public.browser; 6 7 /** 8 * The WebContents Java wrapper to allow communicating with the native WebContents object. 9 */ 10 public interface WebContents { 11 /** 12 * @return The navigation controller associated with this WebContents. 13 */ getNavigationController()14 NavigationController getNavigationController(); 15 16 /** 17 * @return The title for the current visible page. 18 */ getTitle()19 String getTitle(); 20 21 /** 22 * @return The URL for the current visible page. 23 */ getVisibleUrl()24 String getVisibleUrl(); 25 26 /** 27 * Stop any pending navigation. 28 */ stop()29 void stop(); 30 } 31