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

Side by Side Diff: chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.h

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: [rebase] Created 4 years, 3 months 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_NAVIGATION_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_NAVIGATION_OBSERVER_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_NAVIGATION_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_NAVIGATION_OBSERVER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "components/omnibox/browser/autocomplete_match.h" 13 #include "components/omnibox/browser/autocomplete_match.h"
14 #include "components/omnibox/browser/omnibox_navigation_observer.h" 14 #include "components/omnibox/browser/omnibox_navigation_observer.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 #include "content/public/browser/reload_type.h"
17 #include "content/public/browser/web_contents_observer.h" 18 #include "content/public/browser/web_contents_observer.h"
18 #include "net/url_request/url_fetcher_delegate.h" 19 #include "net/url_request/url_fetcher_delegate.h"
19 20
20 class Profile; 21 class Profile;
21 class ShortcutsBackend; 22 class ShortcutsBackend;
22 23
23 namespace net { 24 namespace net {
24 class URLFetcher; 25 class URLFetcher;
25 class URLRequestStatus; 26 class URLRequestStatus;
26 } 27 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool HasSeenPendingLoad() const override; 75 bool HasSeenPendingLoad() const override;
75 76
76 // content::NotificationObserver: 77 // content::NotificationObserver:
77 void Observe(int type, 78 void Observe(int type,
78 const content::NotificationSource& source, 79 const content::NotificationSource& source,
79 const content::NotificationDetails& details) override; 80 const content::NotificationDetails& details) override;
80 81
81 // content::WebContentsObserver: 82 // content::WebContentsObserver:
82 void DidStartNavigationToPendingEntry( 83 void DidStartNavigationToPendingEntry(
83 const GURL& url, 84 const GURL& url,
84 content::NavigationController::ReloadType reload_type) override; 85 content::ReloadType reload_type) override;
85 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host, 86 void DidFailProvisionalLoad(content::RenderFrameHost* render_frame_host,
86 const GURL& validated_url, 87 const GURL& validated_url,
87 int error_code, 88 int error_code,
88 const base::string16& error_description, 89 const base::string16& error_description,
89 bool was_ignored_by_handler) override; 90 bool was_ignored_by_handler) override;
90 void NavigationEntryCommitted( 91 void NavigationEntryCommitted(
91 const content::LoadCommittedDetails& load_details) override; 92 const content::LoadCommittedDetails& load_details) override;
92 void WebContentsDestroyed() override; 93 void WebContentsDestroyed() override;
93 94
94 // net::URLFetcherDelegate: 95 // net::URLFetcherDelegate:
(...skipping 10 matching lines...) Expand all
105 std::unique_ptr<net::URLFetcher> fetcher_; 106 std::unique_ptr<net::URLFetcher> fetcher_;
106 LoadState load_state_; 107 LoadState load_state_;
107 FetchState fetch_state_; 108 FetchState fetch_state_;
108 109
109 content::NotificationRegistrar registrar_; 110 content::NotificationRegistrar registrar_;
110 111
111 DISALLOW_COPY_AND_ASSIGN(ChromeOmniboxNavigationObserver); 112 DISALLOW_COPY_AND_ASSIGN(ChromeOmniboxNavigationObserver);
112 }; 113 };
113 114
114 #endif // CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_NAVIGATION_OBSERVER_H_ 115 #endif // CHROME_BROWSER_UI_OMNIBOX_CHROME_OMNIBOX_NAVIGATION_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_tabrestore.cc ('k') | chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698