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

Side by Side Diff: Source/modules/mediasource/SourceBufferList.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 void SourceBufferList::add(PassRefPtr<SourceBuffer> buffer) 52 void SourceBufferList::add(PassRefPtr<SourceBuffer> buffer)
53 { 53 {
54 m_list.append(buffer); 54 m_list.append(buffer);
55 scheduleEvent(eventNames().addsourcebufferEvent); 55 scheduleEvent(eventNames().addsourcebufferEvent);
56 } 56 }
57 57
58 void SourceBufferList::remove(SourceBuffer* buffer) 58 void SourceBufferList::remove(SourceBuffer* buffer)
59 { 59 {
60 size_t index = m_list.find(buffer); 60 size_t index = m_list.find(buffer);
61 if (index == notFound) 61 if (index == kNotFound)
62 return; 62 return;
63 m_list.remove(index); 63 m_list.remove(index);
64 scheduleEvent(eventNames().removesourcebufferEvent); 64 scheduleEvent(eventNames().removesourcebufferEvent);
65 } 65 }
66 66
67 void SourceBufferList::clear() 67 void SourceBufferList::clear()
68 { 68 {
69 m_list.clear(); 69 m_list.clear();
70 scheduleEvent(eventNames().removesourcebufferEvent); 70 scheduleEvent(eventNames().removesourcebufferEvent);
71 } 71 }
(...skipping 22 matching lines...) Expand all
94 { 94 {
95 return &m_eventTargetData; 95 return &m_eventTargetData;
96 } 96 }
97 97
98 EventTargetData* SourceBufferList::ensureEventTargetData() 98 EventTargetData* SourceBufferList::ensureEventTargetData()
99 { 99 {
100 return &m_eventTargetData; 100 return &m_eventTargetData;
101 } 101 }
102 102
103 } // namespace WebCore 103 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/mediasource/SourceBufferList.h ('k') | Source/modules/mediasource/WebKitSourceBufferList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698