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

Side by Side Diff: chrome/browser/profiles/profile_destroyer.h

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
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 CHROME_BROWSER_PROFILES_PROFILE_DESTROYER_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_DESTROYER_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_DESTROYER_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_DESTROYER_H_
7 7
8 #include <stdint.h>
9
8 #include <set> 10 #include <set>
9 11
12 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
11 #include "base/timer/timer.h" 14 #include "base/timer/timer.h"
12 #include "content/public/browser/render_process_host_observer.h" 15 #include "content/public/browser/render_process_host_observer.h"
13 16
14 class Profile; 17 class Profile;
15 18
16 namespace content { 19 namespace content {
17 class RenderProcessHost; 20 class RenderProcessHost;
18 } 21 }
19 22
(...skipping 23 matching lines...) Expand all
43 // Return true if we found at least one, false otherwise. 46 // Return true if we found at least one, false otherwise.
44 static bool GetHostsForProfile(Profile* const profile, HostSet* hosts); 47 static bool GetHostsForProfile(Profile* const profile, HostSet* hosts);
45 48
46 // We need access to all pending destroyers so we can cancel them. 49 // We need access to all pending destroyers so we can cancel them.
47 static DestroyerSet* pending_destroyers_; 50 static DestroyerSet* pending_destroyers_;
48 51
49 // We don't want to wait forever, so we have a cancellation timer. 52 // We don't want to wait forever, so we have a cancellation timer.
50 base::Timer timer_; 53 base::Timer timer_;
51 54
52 // Used to count down the number of render process host left. 55 // Used to count down the number of render process host left.
53 uint32 num_hosts_; 56 uint32_t num_hosts_;
54 57
55 // The profile being destroyed. If it is set to NULL, it is a signal from 58 // The profile being destroyed. If it is set to NULL, it is a signal from
56 // another instance of ProfileDestroyer that this instance is canceled. 59 // another instance of ProfileDestroyer that this instance is canceled.
57 Profile* profile_; 60 Profile* profile_;
58 61
59 base::WeakPtrFactory<ProfileDestroyer> weak_ptr_factory_; 62 base::WeakPtrFactory<ProfileDestroyer> weak_ptr_factory_;
60 63
61 DISALLOW_COPY_AND_ASSIGN(ProfileDestroyer); 64 DISALLOW_COPY_AND_ASSIGN(ProfileDestroyer);
62 }; 65 };
63 66
64 #endif // CHROME_BROWSER_PROFILES_PROFILE_DESTROYER_H_ 67 #endif // CHROME_BROWSER_PROFILES_PROFILE_DESTROYER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_browsertest.cc ('k') | chrome/browser/profiles/profile_destroyer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698