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

Side by Side Diff: Source/core/page/ScopedPageLoadDeferrer.cpp

Issue 329183002: Removing "using" declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed Trybot Errors Created 6 years, 6 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
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.cpp ('k') | Source/core/page/TouchDisambiguation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 11 matching lines...) Expand all
22 #include "core/page/ScopedPageLoadDeferrer.h" 22 #include "core/page/ScopedPageLoadDeferrer.h"
23 23
24 #include "core/dom/Document.h" 24 #include "core/dom/Document.h"
25 #include "core/frame/LocalFrame.h" 25 #include "core/frame/LocalFrame.h"
26 #include "core/loader/FrameLoader.h" 26 #include "core/loader/FrameLoader.h"
27 #include "core/page/Page.h" 27 #include "core/page/Page.h"
28 #include "wtf/HashSet.h" 28 #include "wtf/HashSet.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 using namespace std;
33
34 ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion) 32 ScopedPageLoadDeferrer::ScopedPageLoadDeferrer(Page* exclusion)
35 { 33 {
36 const HashSet<Page*>& pages = Page::ordinaryPages(); 34 const HashSet<Page*>& pages = Page::ordinaryPages();
37 35
38 HashSet<Page*>::const_iterator end = pages.end(); 36 HashSet<Page*>::const_iterator end = pages.end();
39 for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) { 37 for (HashSet<Page*>::const_iterator it = pages.begin(); it != end; ++it) {
40 Page* page = *it; 38 Page* page = *it;
41 if (page == exclusion || page->defersLoading()) 39 if (page == exclusion || page->defersLoading())
42 continue; 40 continue;
43 41
(...skipping 26 matching lines...) Expand all
70 68
71 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree(). traverseNext()) { 69 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree(). traverseNext()) {
72 if (frame->isLocalFrame()) 70 if (frame->isLocalFrame())
73 toLocalFrame(frame)->document()->resumeScheduledTasks(); 71 toLocalFrame(frame)->document()->resumeScheduledTasks();
74 } 72 }
75 } 73 }
76 } 74 }
77 } 75 }
78 76
79 } // namespace WebCore 77 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/inspector/InjectedScriptHost.cpp ('k') | Source/core/page/TouchDisambiguation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698