OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // Returns true if the location bar should be focused by default rather than | 382 // Returns true if the location bar should be focused by default rather than |
383 // the page contents. The view calls this function when the tab is focused | 383 // the page contents. The view calls this function when the tab is focused |
384 // to see what it should do. | 384 // to see what it should do. |
385 virtual bool FocusLocationBarByDefault() = 0; | 385 virtual bool FocusLocationBarByDefault() = 0; |
386 | 386 |
387 // Focuses the location bar. | 387 // Focuses the location bar. |
388 virtual void SetFocusToLocationBar(bool select_all) = 0; | 388 virtual void SetFocusToLocationBar(bool select_all) = 0; |
389 | 389 |
390 // Does this have an opener associated with it? | 390 // Does this have an opener associated with it? |
391 virtual bool HasOpener() const = 0; | 391 virtual bool HasOpener() const = 0; |
| 392 |
| 393 // Should we ignore this top level navigation? |
| 394 virtual bool ShouldIgnoreNavigation(const GURL& url, |
| 395 const content::Referrer& referrer, |
| 396 bool is_content_initiated) = 0; |
392 }; | 397 }; |
393 | 398 |
394 } // namespace content | 399 } // namespace content |
395 | 400 |
396 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ | 401 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_H_ |
OLD | NEW |