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

Side by Side Diff: chrome/renderer/extensions/user_script_idle_scheduler.cc

Issue 8784004: Update includes to new header locations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/renderer/extensions/user_script_idle_scheduler.h" 5 #include "chrome/renderer/extensions/user_script_idle_scheduler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "chrome/common/extensions/extension_error_utils.h" 9 #include "chrome/common/extensions/extension_error_utils.h"
10 #include "chrome/common/extensions/extension_messages.h" 10 #include "chrome/common/extensions/extension_messages.h"
11 #include "chrome/renderer/extensions/extension_dispatcher.h" 11 #include "chrome/renderer/extensions/extension_dispatcher.h"
12 #include "chrome/renderer/extensions/extension_groups.h" 12 #include "chrome/renderer/extensions/extension_groups.h"
13 #include "chrome/renderer/extensions/extension_helper.h" 13 #include "chrome/renderer/extensions/extension_helper.h"
14 #include "chrome/renderer/extensions/user_script_slave.h" 14 #include "chrome/renderer/extensions/user_script_slave.h"
15 #include "content/public/renderer/render_view.h" 15 #include "content/public/renderer/render_view.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
20 20
21 namespace { 21 namespace {
22 // The length of time to wait after the DOM is complete to try and run user 22 // The length of time to wait after the DOM is complete to try and run user
23 // scripts. 23 // scripts.
24 const int kUserScriptIdleTimeoutMs = 200; 24 const int kUserScriptIdleTimeoutMs = 200;
25 } 25 }
26 26
27 using WebKit::WebDocument; 27 using WebKit::WebDocument;
28 using WebKit::WebFrame; 28 using WebKit::WebFrame;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 if (!parent_frame) 173 if (!parent_frame)
174 return false; 174 return false;
175 175
176 for (WebFrame* child_frame = parent_frame->firstChild(); child_frame; 176 for (WebFrame* child_frame = parent_frame->firstChild(); child_frame;
177 child_frame = child_frame->nextSibling()) { 177 child_frame = child_frame->nextSibling()) {
178 frames_vector->push_back(child_frame); 178 frames_vector->push_back(child_frame);
179 GetAllChildFrames(child_frame, frames_vector); 179 GetAllChildFrames(child_frame, frames_vector);
180 } 180 }
181 return true; 181 return true;
182 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698