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

Side by Side Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 173020: Make Mac first run store sentinel in Profile directory. (Closed)
Patch Set: spelling Created 11 years, 4 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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "chrome/browser/renderer_host/browser_render_process_host.h" 8 #include "chrome/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 // Deleted in CleanUp() on the renderer thread, so don't use a smart pointer. 118 // Deleted in CleanUp() on the renderer thread, so don't use a smart pointer.
119 RenderProcess* render_process_; 119 RenderProcess* render_process_;
120 }; 120 };
121 121
122 122
123 #if defined(OS_LINUX) 123 #if defined(OS_LINUX)
124 // This is defined in chrome/browser/google_update_settings_linux.cc, it's the 124 // This is defined in chrome/browser/google_update_settings_linux.cc, it's the
125 // static string containing the user's unique GUID. We send this in the crash 125 // static string containing the user's unique GUID. We send this in the crash
126 // report. 126 // report.
127 namespace google_update { 127 namespace google_update {
128 extern std::string linux_guid; 128 extern std::string posix_guid;
129 } 129 }
130 #endif 130 #endif
131 131
132 // Size of the buffer after which individual link updates deemed not warranted 132 // Size of the buffer after which individual link updates deemed not warranted
133 // and the overall update should be used instead. 133 // and the overall update should be used instead.
134 static const unsigned kVisitedLinkBufferThreshold = 50; 134 static const unsigned kVisitedLinkBufferThreshold = 50;
135 135
136 // This class manages buffering and sending visited link hashes (fingerprints) 136 // This class manages buffering and sending visited link hashes (fingerprints)
137 // to renderer based on widget visibility. 137 // to renderer based on widget visibility.
138 // As opposed to the VisitedLinkEventListener in profile.cc, which coalesces to 138 // As opposed to the VisitedLinkEventListener in profile.cc, which coalesces to
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 profile()->GetExtensionMessageService()->RemoveEventListener(event_name, 991 profile()->GetExtensionMessageService()->RemoveEventListener(event_name,
992 pid()); 992 pid());
993 } 993 }
994 } 994 }
995 995
996 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) { 996 void BrowserRenderProcessHost::OnExtensionCloseChannel(int port_id) {
997 if (profile()->GetExtensionMessageService()) { 997 if (profile()->GetExtensionMessageService()) {
998 profile()->GetExtensionMessageService()->CloseChannel(port_id); 998 profile()->GetExtensionMessageService()->CloseChannel(port_id);
999 } 999 }
1000 } 1000 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698