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

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

Issue 6142009: Upating the app, ceee, chrome, ipc, media, and net directories to use the correct lock.h file. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Unified patch updating all references to the new base/synchronization/lock.h Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSER_CROSS_SITE_REQUEST_MANAGER_H__ 5 #ifndef CHROME_BROWSER_CROSS_SITE_REQUEST_MANAGER_H__
6 #define CHROME_BROWSER_CROSS_SITE_REQUEST_MANAGER_H__ 6 #define CHROME_BROWSER_CROSS_SITE_REQUEST_MANAGER_H__
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/lock.h" 13 #include "base/synchronization/lock.h"
14 14
15 template <typename T> struct DefaultSingletonTraits; 15 template <typename T> struct DefaultSingletonTraits;
16 16
17 // CrossSiteRequestManager is used to handle bookkeeping for cross-site 17 // CrossSiteRequestManager is used to handle bookkeeping for cross-site
18 // requests and responses between the UI and IO threads. Such requests involve 18 // requests and responses between the UI and IO threads. Such requests involve
19 // a transition from one RenderViewHost to another within TabContents, and 19 // a transition from one RenderViewHost to another within TabContents, and
20 // involve coordination with ResourceDispatcherHost. 20 // involve coordination with ResourceDispatcherHost.
21 // 21 //
22 // CrossSiteRequestManager is a singleton that may be used on any thread. 22 // CrossSiteRequestManager is a singleton that may be used on any thread.
23 // 23 //
(...skipping 16 matching lines...) Expand all
40 40
41 private: 41 private:
42 friend struct DefaultSingletonTraits<CrossSiteRequestManager>; 42 friend struct DefaultSingletonTraits<CrossSiteRequestManager>;
43 typedef std::set<std::pair<int, int> > RenderViewSet; 43 typedef std::set<std::pair<int, int> > RenderViewSet;
44 44
45 CrossSiteRequestManager(); 45 CrossSiteRequestManager();
46 ~CrossSiteRequestManager(); 46 ~CrossSiteRequestManager();
47 47
48 // You must acquire this lock before reading or writing any members of this 48 // You must acquire this lock before reading or writing any members of this
49 // class. You must not block while holding this lock. 49 // class. You must not block while holding this lock.
50 Lock lock_; 50 base::Lock lock_;
51 51
52 // Set of (render_process_host_id, render_view_id) pairs of all 52 // Set of (render_process_host_id, render_view_id) pairs of all
53 // RenderViewHosts that have pending cross-site requests. Used to pass 53 // RenderViewHosts that have pending cross-site requests. Used to pass
54 // information about the RenderViewHosts between the UI and IO threads. 54 // information about the RenderViewHosts between the UI and IO threads.
55 RenderViewSet pending_cross_site_views_; 55 RenderViewSet pending_cross_site_views_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(CrossSiteRequestManager); 57 DISALLOW_COPY_AND_ASSIGN(CrossSiteRequestManager);
58 }; 58 };
59 59
60 #endif // CHROME_BROWSER_CROSS_SITE_REQUEST_MANAGER_H__ 60 #endif // CHROME_BROWSER_CROSS_SITE_REQUEST_MANAGER_H__
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/pref_content_settings_provider.cc ('k') | chrome/browser/cross_site_request_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698