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

Side by Side Diff: chrome/test/chromedriver/navigation_tracker.h

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #ifndef CHROME_TEST_CHROMEDRIVER_NAVIGATION_TRACKER_H_
6 #define CHROME_TEST_CHROMEDRIVER_NAVIGATION_TRACKER_H_
7
8 #include <set>
9 #include <string>
10
11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h"
13 #include "chrome/test/chromedriver/devtools_event_listener.h"
14 #include "chrome/test/chromedriver/status.h"
15
16 namespace base {
17 class DictionaryValue;
18 }
19
20 class DevToolsClient;
21 class Status;
22
23 // Tracks the navigation state of the page.
24 class NavigationTracker : public DevToolsEventListener {
25 public:
26 enum LoadingState {
27 kUnknown,
28 kLoading,
29 kNotLoading,
30 };
31
32 explicit NavigationTracker(DevToolsClient* client);
33 NavigationTracker(DevToolsClient* client, LoadingState known_state);
34 virtual ~NavigationTracker();
35
36 Status IsPendingNavigation(const std::string& frame_id, bool* is_pending);
37
38 // Overridden from DevToolsEventListener:
39 virtual Status OnConnected() OVERRIDE;
40 virtual void OnEvent(const std::string& method,
41 const base::DictionaryValue& params) OVERRIDE;
42
43 private:
44 DevToolsClient* client_;
45 LoadingState loading_state_;
46 std::set<std::string> scheduled_frame_set_;
47
48 DISALLOW_COPY_AND_ASSIGN(NavigationTracker);
49 };
50
51 #endif // CHROME_TEST_CHROMEDRIVER_NAVIGATION_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/local_state.txt ('k') | chrome/test/chromedriver/navigation_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698