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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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 (c) 2013 The Chromium Authors. All rights reserved. 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 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_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h" 13 #include "chrome/test/chromedriver/chrome/devtools_event_listener.h"
14 14
15 namespace base { 15 namespace base {
16 class DictionaryValue; 16 class DictionaryValue;
17 class Value;
18 } 17 }
19 18
20 class DevToolsClient; 19 class DevToolsClient;
21 class Status; 20 class Status;
22 21
23 // Tracks execution context creation. 22 // Tracks execution context creation.
24 class FrameTracker : public DevToolsEventListener { 23 class FrameTracker : public DevToolsEventListener {
25 public: 24 public:
26 explicit FrameTracker(DevToolsClient* client); 25 explicit FrameTracker(DevToolsClient* client);
27 ~FrameTracker() override; 26 ~FrameTracker() override;
28 27
29 Status GetContextIdForFrame(const std::string& frame_id, int* context_id); 28 Status GetContextIdForFrame(const std::string& frame_id, int* context_id);
30 29
31 // Overridden from DevToolsEventListener: 30 // Overridden from DevToolsEventListener:
32 Status OnConnected(DevToolsClient* client) override; 31 Status OnConnected(DevToolsClient* client) override;
33 Status OnEvent(DevToolsClient* client, 32 Status OnEvent(DevToolsClient* client,
34 const std::string& method, 33 const std::string& method,
35 const base::DictionaryValue& params) override; 34 const base::DictionaryValue& params) override;
36 35
37 private: 36 private:
38 std::map<std::string, int> frame_to_context_map_; 37 std::map<std::string, int> frame_to_context_map_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(FrameTracker); 39 DISALLOW_COPY_AND_ASSIGN(FrameTracker);
41 }; 40 };
42 41
43 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_ 42 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_FRAME_TRACKER_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/chrome/chrome_impl.h ('k') | chrome/test/chromedriver/chrome/web_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698