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

Side by Side Diff: chrome/browser/visitedlink_event_listener.cc

Issue 3170020: Completely revert all my IPC work to see if this was what regressed the page cycler. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase Created 10 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
« no previous file with comments | « chrome/browser/renderer_host/sync_resource_handler.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #include "chrome/browser/visitedlink_event_listener.h" 5 #include "chrome/browser/visitedlink_event_listener.h"
6 6
7 #include "base/shared_memory.h" 7 #include "base/shared_memory.h"
8 #include "chrome/browser/renderer_host/render_process_host.h" 8 #include "chrome/browser/renderer_host/render_process_host.h"
9 #include "chrome/common/render_messages.h"
9 10
10 using base::Time; 11 using base::Time;
11 using base::TimeDelta; 12 using base::TimeDelta;
12 13
13 // The amount of time we wait to accumulate visited link additions. 14 // The amount of time we wait to accumulate visited link additions.
14 static const int kCommitIntervalMs = 100; 15 static const int kCommitIntervalMs = 100;
15 16
16 void VisitedLinkEventListener::NewTable(base::SharedMemory* table_memory) { 17 void VisitedLinkEventListener::NewTable(base::SharedMemory* table_memory) {
17 if (!table_memory) 18 if (!table_memory)
18 return; 19 return;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 51
51 void VisitedLinkEventListener::CommitVisitedLinks() { 52 void VisitedLinkEventListener::CommitVisitedLinks() {
52 // Send to all RenderProcessHosts. 53 // Send to all RenderProcessHosts.
53 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator()); 54 for (RenderProcessHost::iterator i(RenderProcessHost::AllHostsIterator());
54 !i.IsAtEnd(); i.Advance()) { 55 !i.IsAtEnd(); i.Advance()) {
55 i.GetCurrentValue()->AddVisitedLinks(pending_visited_links_); 56 i.GetCurrentValue()->AddVisitedLinks(pending_visited_links_);
56 } 57 }
57 58
58 pending_visited_links_.clear(); 59 pending_visited_links_.clear();
59 } 60 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/sync_resource_handler.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698