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

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

Issue 2866034: Refactor shutdown code to allow win/linux to run after last browser closes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Uploaded patch that resolves merge issue Created 10 years, 5 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) 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_BACKGROUND_CONTENTS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_
6 #define CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ 6 #define CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 string16 frame_name; 101 string16 frame_name;
102 }; 102 };
103 103
104 // Map associating currently loaded BackgroundContents with their parent 104 // Map associating currently loaded BackgroundContents with their parent
105 // applications. 105 // applications.
106 // Key: application id 106 // Key: application id
107 // Value: BackgroundContentsInfo for the BC associated with that application 107 // Value: BackgroundContentsInfo for the BC associated with that application
108 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap; 108 typedef std::map<string16, BackgroundContentsInfo> BackgroundContentsMap;
109 BackgroundContentsMap contents_map_; 109 BackgroundContentsMap contents_map_;
110 110
111 // If true, should always keep the browser process alive regardless of whether
112 // there are any BackgroundContents (used for manual/automated testing).
113 bool always_keep_alive_;
114
111 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService); 115 DISALLOW_COPY_AND_ASSIGN(BackgroundContentsService);
112 }; 116 };
113 117
114 #endif // CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_ 118 #endif // CHROME_BROWSER_BACKGROUND_CONTENTS_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698