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

Side by Side Diff: webkit/tools/test_shell/test_navigation_controller.h

Issue 115575: Move ExtraData from WebRequest to WebDataSource.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 WEBKIT_TOOLS_TEST_SHELL_TEST_NAVIGATION_CONTROLLER_H_ 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_NAVIGATION_CONTROLLER_H_
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_NAVIGATION_CONTROLLER_H_ 6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_NAVIGATION_CONTROLLER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/linked_ptr.h" 12 #include "base/linked_ptr.h"
13 #include "base/ref_counted.h" 13 #include "base/ref_counted.h"
14 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
15 #include "webkit/glue/weburlrequest.h" 15 #include "webkit/glue/webdatasource.h"
16 16
17 class GURL; 17 class GURL;
18 class TestShell; 18 class TestShell;
19 19
20 // Associated with browser-initated navigations to hold tracking data. 20 // Associated with browser-initated navigations to hold tracking data.
21 class TestShellExtraRequestData : public WebRequest::ExtraData { 21 class TestShellExtraData : public WebDataSource::ExtraData {
22 public: 22 public:
23 TestShellExtraRequestData(int32 pending_page_id) 23 TestShellExtraData(int32 pending_page_id)
24 : WebRequest::ExtraData(), 24 : pending_page_id(pending_page_id),
25 pending_page_id(pending_page_id),
26 request_committed(false) { 25 request_committed(false) {
27 } 26 }
28 27
29 // Contains the page_id for this navigation or -1 if there is none yet. 28 // Contains the page_id for this navigation or -1 if there is none yet.
30 int32 pending_page_id; 29 int32 pending_page_id;
31 30
32 // True if we have already processed the "DidCommitLoad" event for this 31 // True if we have already processed the "DidCommitLoad" event for this
33 // request. Used by session history. 32 // request. Used by session history.
34 bool request_committed; 33 bool request_committed;
35 }; 34 };
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // new entry (created by LoadURL). 180 // new entry (created by LoadURL).
182 int pending_entry_index_; 181 int pending_entry_index_;
183 182
184 TestShell* shell_; 183 TestShell* shell_;
185 int max_page_id_; 184 int max_page_id_;
186 185
187 DISALLOW_EVIL_CONSTRUCTORS(TestNavigationController); 186 DISALLOW_EVIL_CONSTRUCTORS(TestNavigationController);
188 }; 187 };
189 188
190 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_NAVIGATION_CONTROLLER_H_ 189 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_NAVIGATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698