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

Side by Side Diff: content/browser/cross_site_request_manager.h

Issue 11274038: content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win - part2 Created 8 years, 2 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_CROSS_SITE_REQUEST_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_CROSS_SITE_REQUEST_MANAGER_H_
6 #define CONTENT_BROWSER_CROSS_SITE_REQUEST_MANAGER_H_ 6 #define CONTENT_BROWSER_CROSS_SITE_REQUEST_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/synchronization/lock.h" 12 #include "base/synchronization/lock.h"
13 13
14 template <typename T> struct DefaultSingletonTraits; 14 template <typename T> struct DefaultSingletonTraits;
15 15
16 namespace content {
17
16 // CrossSiteRequestManager is used to handle bookkeeping for cross-site 18 // CrossSiteRequestManager is used to handle bookkeeping for cross-site
17 // requests and responses between the UI and IO threads. Such requests involve 19 // requests and responses between the UI and IO threads. Such requests involve
18 // a transition from one RenderViewHost to another within WebContentsImpl, and 20 // a transition from one RenderViewHost to another within WebContentsImpl, and
19 // involve coordination with ResourceDispatcherHost. 21 // involve coordination with ResourceDispatcherHost.
20 // 22 //
21 // CrossSiteRequestManager is a singleton that may be used on any thread. 23 // CrossSiteRequestManager is a singleton that may be used on any thread.
22 // 24 //
23 class CrossSiteRequestManager { 25 class CrossSiteRequestManager {
24 public: 26 public:
25 // Returns the singleton instance. 27 // Returns the singleton instance.
(...skipping 23 matching lines...) Expand all
49 base::Lock lock_; 51 base::Lock lock_;
50 52
51 // Set of (render_process_host_id, render_view_id) pairs of all 53 // Set of (render_process_host_id, render_view_id) pairs of all
52 // RenderViewHosts that have pending cross-site requests. Used to pass 54 // RenderViewHosts that have pending cross-site requests. Used to pass
53 // information about the RenderViewHosts between the UI and IO threads. 55 // information about the RenderViewHosts between the UI and IO threads.
54 RenderViewSet pending_cross_site_views_; 56 RenderViewSet pending_cross_site_views_;
55 57
56 DISALLOW_COPY_AND_ASSIGN(CrossSiteRequestManager); 58 DISALLOW_COPY_AND_ASSIGN(CrossSiteRequestManager);
57 }; 59 };
58 60
61 } // namespace content
62
59 #endif // CONTENT_BROWSER_CROSS_SITE_REQUEST_MANAGER_H_ 63 #endif // CONTENT_BROWSER_CROSS_SITE_REQUEST_MANAGER_H_
OLDNEW
« no previous file with comments | « content/browser/child_process_security_policy_unittest.cc ('k') | content/browser/cross_site_request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698