summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_service.cc2
-rw-r--r--chrome/browser/safe_browsing/safe_browsing_service.h2
-rw-r--r--ppapi/proxy/ppb_context_3d_proxy.cc2
-rw-r--r--ppapi/proxy/ppb_context_3d_proxy.h2
-rw-r--r--ppapi/proxy/ppb_surface_3d_proxy.cc2
-rw-r--r--ppapi/proxy/ppb_surface_3d_proxy.h2
-rw-r--r--remoting/protocol/rtp_video_reader.cc6
-rw-r--r--remoting/protocol/rtp_video_reader.h8
-rw-r--r--webkit/plugins/ppapi/ppb_context_3d_impl.cc1
9 files changed, 13 insertions, 14 deletions
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 252324c..e4564bf 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -1190,7 +1190,7 @@ void SafeBrowsingService::StartDownloadCheck(SafeBrowsingCheck* check,
FROM_HERE, check->timeout_task, timeout_ms);
}
-void SafeBrowsingService::UpdateWhitelist(UnsafeResource resource) {
+void SafeBrowsingService::UpdateWhitelist(const UnsafeResource& resource) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Whitelist this domain and warning type for the given tab.
WhiteListedEntry entry;
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h
index e3a8549..65b7ea2 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -408,7 +408,7 @@ class SafeBrowsingService
int64 timeout_ms);
// Adds the given entry to the whitelist. Called on the UI thread.
- void UpdateWhitelist(UnsafeResource resource);
+ void UpdateWhitelist(const UnsafeResource& resource);
// The factory used to instanciate a SafeBrowsingService object.
// Useful for tests, so they can provide their own implementation of
diff --git a/ppapi/proxy/ppb_context_3d_proxy.cc b/ppapi/proxy/ppb_context_3d_proxy.cc
index fce162b..627ebba 100644
--- a/ppapi/proxy/ppb_context_3d_proxy.cc
+++ b/ppapi/proxy/ppb_context_3d_proxy.cc
@@ -544,7 +544,7 @@ bool PPB_Context3D_Proxy::OnMessageReceived(const IPC::Message& msg) {
void PPB_Context3D_Proxy::OnMsgCreate(PP_Instance instance,
PP_Config3D_Dev config,
- std::vector<int32_t> attribs,
+ const std::vector<int32_t>& attribs,
HostResource* result) {
DCHECK(attribs.back() == 0);
PP_Resource resource = ppb_context_3d_trusted()->CreateRaw(
diff --git a/ppapi/proxy/ppb_context_3d_proxy.h b/ppapi/proxy/ppb_context_3d_proxy.h
index 3e2f953..c831fbe 100644
--- a/ppapi/proxy/ppb_context_3d_proxy.h
+++ b/ppapi/proxy/ppb_context_3d_proxy.h
@@ -87,7 +87,7 @@ class PPB_Context3D_Proxy : public InterfaceProxy {
private:
void OnMsgCreate(PP_Instance instance,
PP_Config3D_Dev config,
- std::vector<int32_t> attribs,
+ const std::vector<int32_t>& attribs,
HostResource* result);
void OnMsgBindSurfaces(const HostResource& context,
const HostResource& draw,
diff --git a/ppapi/proxy/ppb_surface_3d_proxy.cc b/ppapi/proxy/ppb_surface_3d_proxy.cc
index 655bf9d..79854f9 100644
--- a/ppapi/proxy/ppb_surface_3d_proxy.cc
+++ b/ppapi/proxy/ppb_surface_3d_proxy.cc
@@ -159,7 +159,7 @@ bool PPB_Surface3D_Proxy::OnMessageReceived(const IPC::Message& msg) {
void PPB_Surface3D_Proxy::OnMsgCreate(PP_Instance instance,
PP_Config3D_Dev config,
- std::vector<int32_t> attribs,
+ const std::vector<int32_t>& attribs,
HostResource* result) {
DCHECK(attribs.size() % 2 == 1);
DCHECK(attribs.back() == PP_GRAPHICS3DATTRIB_NONE);
diff --git a/ppapi/proxy/ppb_surface_3d_proxy.h b/ppapi/proxy/ppb_surface_3d_proxy.h
index a805af0..13e9e17 100644
--- a/ppapi/proxy/ppb_surface_3d_proxy.h
+++ b/ppapi/proxy/ppb_surface_3d_proxy.h
@@ -82,7 +82,7 @@ class PPB_Surface3D_Proxy : public InterfaceProxy {
// Message handlers.
void OnMsgCreate(PP_Instance instance,
PP_Config3D_Dev config,
- std::vector<int32_t> attribs,
+ const std::vector<int32_t>& attribs,
HostResource* result);
void OnMsgSwapBuffers(const HostResource& surface);
// Renderer->plugin message handlers.
diff --git a/remoting/protocol/rtp_video_reader.cc b/remoting/protocol/rtp_video_reader.cc
index a4ae725..b6d9e0b 100644
--- a/remoting/protocol/rtp_video_reader.cc
+++ b/remoting/protocol/rtp_video_reader.cc
@@ -94,7 +94,7 @@ void RtpVideoReader::OnRtpPacket(const RtpPacket* rtp_packet) {
CheckFullPacket(packets_queue_.begin() + packet_index);
}
-void RtpVideoReader::CheckFullPacket(PacketsQueue::iterator pos) {
+void RtpVideoReader::CheckFullPacket(const PacketsQueue::iterator& pos) {
if (pos->packet->vp8_descriptor().fragmentation_info ==
Vp8Descriptor::NOT_FRAGMENTED) {
// The packet is not fragmented.
@@ -131,8 +131,8 @@ void RtpVideoReader::CheckFullPacket(PacketsQueue::iterator pos) {
RebuildVideoPacket(first, last);
}
-void RtpVideoReader::RebuildVideoPacket(PacketsQueue::iterator first,
- PacketsQueue::iterator last) {
+void RtpVideoReader::RebuildVideoPacket(const PacketsQueue::iterator& first,
+ const PacketsQueue::iterator& last) {
VideoPacket* packet = new VideoPacket();
// Set flags.
diff --git a/remoting/protocol/rtp_video_reader.h b/remoting/protocol/rtp_video_reader.h
index a99bf7c..8b0d3bd 100644
--- a/remoting/protocol/rtp_video_reader.h
+++ b/remoting/protocol/rtp_video_reader.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -45,9 +45,9 @@ class RtpVideoReader : public VideoReader {
typedef std::deque<PacketsQueueEntry> PacketsQueue;
void OnRtpPacket(const RtpPacket* rtp_packet);
- void CheckFullPacket(PacketsQueue::iterator pos);
- void RebuildVideoPacket(PacketsQueue::iterator from,
- PacketsQueue::iterator to);
+ void CheckFullPacket(const PacketsQueue::iterator& pos);
+ void RebuildVideoPacket(const PacketsQueue::iterator& from,
+ const PacketsQueue::iterator& to);
void ResetQueue();
// Helper method that sends RTCP receiver reports if enough time has
diff --git a/webkit/plugins/ppapi/ppb_context_3d_impl.cc b/webkit/plugins/ppapi/ppb_context_3d_impl.cc
index 4fd8826..250f6b1 100644
--- a/webkit/plugins/ppapi/ppb_context_3d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_context_3d_impl.cc
@@ -399,4 +399,3 @@ gpu::CommandBuffer *PPB_Context3D_Impl::command_buffer() {
} // namespace ppapi
} // namespace webkit
-