• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_NAVIGATION_ENTRY_IMPL_H_
6 #define CEF_LIBCEF_BROWSER_NAVIGATION_ENTRY_IMPL_H_
7 #pragma once
8 
9 #include "include/cef_navigation_entry.h"
10 #include "libcef/common/value_base.h"
11 
12 namespace content {
13 class NavigationEntry;
14 }
15 
16 // CefNavigationEntry implementation
17 class CefNavigationEntryImpl
18     : public CefValueBase<CefNavigationEntry, content::NavigationEntry> {
19  public:
20   explicit CefNavigationEntryImpl(content::NavigationEntry* value);
21 
22   // CefNavigationEntry methods.
23   bool IsValid() override;
24   CefString GetURL() override;
25   CefString GetDisplayURL() override;
26   CefString GetOriginalURL() override;
27   CefString GetTitle() override;
28   TransitionType GetTransitionType() override;
29   bool HasPostData() override;
30   CefTime GetCompletionTime() override;
31   int GetHttpStatusCode() override;
32   CefRefPtr<CefSSLStatus> GetSSLStatus() override;
33 
34  private:
35   DISALLOW_COPY_AND_ASSIGN(CefNavigationEntryImpl);
36 };
37 
38 #endif  // CEF_LIBCEF_BROWSER_NAVIGATION_ENTRY_IMPL_H_
39