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

Side by Side Diff: components/visitedlink/renderer/visitedlink_slave.cc

Issue 11825011: Componentize visitedlinks to src/components/visitedlink (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final rebase Created 7 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
« no previous file with comments | « components/visitedlink/renderer/visitedlink_slave.h ('k') | components/visitedlink/test/DEPS » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/renderer/visitedlink_slave.h" 5 #include "components/visitedlink/renderer/visitedlink_slave.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/shared_memory.h" 8 #include "base/shared_memory.h"
9 #include "chrome/common/render_messages.h" 9 #include "components/visitedlink/common/visitedlink_messages.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
11 11
12 namespace components {
13
12 using WebKit::WebView; 14 using WebKit::WebView;
13 15
14 VisitedLinkSlave::VisitedLinkSlave() : shared_memory_(NULL) { 16 VisitedLinkSlave::VisitedLinkSlave() : shared_memory_(NULL) {
15 } 17 }
16 18
17 VisitedLinkSlave::~VisitedLinkSlave() { 19 VisitedLinkSlave::~VisitedLinkSlave() {
18 FreeTable(); 20 FreeTable();
19 } 21 }
20 22
21 bool VisitedLinkSlave::OnControlMessageReceived(const IPC::Message& message) { 23 bool VisitedLinkSlave::OnControlMessageReceived(const IPC::Message& message) {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 82 }
81 83
82 void VisitedLinkSlave::FreeTable() { 84 void VisitedLinkSlave::FreeTable() {
83 if (shared_memory_) { 85 if (shared_memory_) {
84 delete shared_memory_; 86 delete shared_memory_;
85 shared_memory_ = NULL; 87 shared_memory_ = NULL;
86 } 88 }
87 hash_table_ = NULL; 89 hash_table_ = NULL;
88 table_length_ = 0; 90 table_length_ = 0;
89 } 91 }
92
93 } // namespace components
OLDNEW
« no previous file with comments | « components/visitedlink/renderer/visitedlink_slave.h ('k') | components/visitedlink/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698